Skip to content

Conversation

Ram4GB
Copy link
Contributor

@Ram4GB Ram4GB commented Dec 17, 2024

Missing throwOnError in SWRMutationHook's options. Update code to let users pass option throwOnError.

Example:

useSWRMutation('/api/mutate-server-action', () => action(), { throwOnError: true })

Copy link

codesandbox-ci bot commented Dec 17, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@huozhi
Copy link
Member

huozhi commented Dec 23, 2024

Types check is still failing, we can land it once it's pssed!

@Ram4GB Ram4GB requested a review from huozhi December 23, 2024 15:27
@huozhi huozhi merged commit 2684b72 into vercel:main Dec 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants