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

Introduce MutatedEffect #131

Merged
merged 2 commits into from
Nov 23, 2024
Merged

Introduce MutatedEffect #131

merged 2 commits into from
Nov 23, 2024

Conversation

ogaclejapan
Copy link
Contributor

Since the mutateAsync function already exists as part of the Mutation API, we have introduced a new side-effect function to handle its results asynchronously.

Along with this change, the default setting for Mutation recomposition optimization has been turned off. Unlike Query optimization, Mutation optimization provides fewer benefits, so it will now require an opt-in approach for those who need it.

Since the `mutateAsync` function already exists as part of the Mutation API, we have introduced a new side-effect
function to handle its results asynchronously.

Along with this change, the default setting for Mutation recomposition optimization has been turned off. Unlike Query
optimization, Mutation optimization provides fewer benefits, so it will now require an opt-in approach for those who
need it.
@ogaclejapan ogaclejapan added the enhancement New feature or request label Nov 23, 2024
@ogaclejapan ogaclejapan merged commit aaa9f81 into main Nov 23, 2024
@ogaclejapan ogaclejapan deleted the introduce-mutated-effect branch November 23, 2024 09:37
ogaclejapan added a commit that referenced this pull request Nov 24, 2024
When it was introduced in #131, `replyUpdatedAt` was used as the default value for `keySelector`. However, an issue was discovered during unit testing.
Since `replyUpdatedAt` handles epoch time in seconds, the success callback was not triggered when updates occurred at intervals of less than a second.
The unit test, which performed multiple updates within sub-second intervals, helped uncover this issue.
@ogaclejapan ogaclejapan mentioned this pull request Nov 24, 2024
@github-actions github-actions bot mentioned this pull request Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant