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

Tweak MutatedEffect #133

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Tweak MutatedEffect #133

merged 1 commit into from
Nov 24, 2024

Conversation

ogaclejapan
Copy link
Contributor

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.

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 merged commit 284d496 into main Nov 24, 2024
3 checks passed
@ogaclejapan ogaclejapan deleted the fix-mutated-effect branch November 24, 2024 01:00
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant