Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: consent screen use mutate over async mutate #482

Merged
merged 2 commits into from
Dec 1, 2023
Merged

Conversation

jkdowdle
Copy link
Contributor

@jkdowdle jkdowdle commented Dec 1, 2023

Changes

  • Following up on an early suggestion to switch this to use mutate over mutateAsync, makes using it a bit simpler especially in the custom screen flow

Screenshots

Comment on lines 21 to 27
options: UseMutationOptions<
PatchConsentDirectives['Response'],
unknown,
PatchConsentDirectives['Request'] & {
directiveId: string;
}
> = {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than provide the full options here, can we just provide an onSuccess option? That will simplify the typing a lot, and make a soon-to-come change from me a lot easier.

@jkdowdle jkdowdle changed the title fix!: consent screen use mutate over async mutate fix: consent screen use mutate over async mutate Dec 1, 2023
@coveralls
Copy link

coveralls commented Dec 1, 2023

Pull Request Test Coverage Report for Build 7063285931

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 10 of 10 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 83.754%

Files with Coverage Reduction New Missed Lines %
src/components/Invitations/InviteProvider.tsx 1 96.55%
Totals Coverage Status
Change from base Build 7063124105: 0.01%
Covered Lines: 3249
Relevant Lines: 3769

💛 - Coveralls

@jkdowdle jkdowdle requested a review from swain December 1, 2023 17:36
@swain swain merged commit 57b28d2 into master Dec 1, 2023
3 checks passed
@swain swain deleted the switch-mutate branch December 1, 2023 17:43
Copy link

github-actions bot commented Dec 1, 2023

🎉 This PR is included in version 9.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Has been released to the package repository (NPM, etc) label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Has been released to the package repository (NPM, etc)
Projects
None yet
3 participants