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(core): add fallback mutation function for useOnError #5883

Merged
merged 3 commits into from Apr 24, 2024

Conversation

aliemir
Copy link
Member

@aliemir aliemir commented Apr 24, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

Changes

Currently when user doesn't define an authProvider.onError method, useOnError calls (made internally when a query or a mutation fails) will log an error to the console in development environments as "no mutationFn found".

Provided a fallback function to useOnError to prevent this error to be logged without changing any functionality of the hook.

@aliemir aliemir requested a review from a team as a code owner April 24, 2024 06:16
Copy link

changeset-bot bot commented Apr 24, 2024

🦋 Changeset detected

Latest commit: deb2ac6

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aliemir aliemir added this to the May Release milestone Apr 24, 2024
Copy link

nx-cloud bot commented Apr 24, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit deb2ac6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@refine-bot refine-bot temporarily deployed to deploy-preview-mui-5883 April 24, 2024 06:19 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-antd-5883 April 24, 2024 06:22 Inactive
Copy link

cypress bot commented Apr 24, 2024

Passing run #10983 ↗︎

0 378 33 0 Flakiness 0

Details:

Merge deb2ac6 into 2b6f053...
Project: refine Commit: d67a656275 ℹ️
Status: Passed Duration: 29:22 💡
Started: Apr 24, 2024 8:28 AM Ended: Apr 24, 2024 8:57 AM

Review all test suite changes for PR #5883 ↗︎

@aliemir aliemir changed the base branch from master to releases/may April 24, 2024 10:49
@aliemir aliemir merged commit 0a76576 into releases/may Apr 24, 2024
93 of 94 checks passed
@aliemir aliemir deleted the fix/use-on-error-calls-without-auth-provider branch April 24, 2024 11:41
@aliemir aliemir mentioned this pull request Apr 24, 2024
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.

None yet

3 participants