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 Comparison Functions #99

Merged
merged 1 commit into from
Sep 22, 2024
Merged

Introduce Comparison Functions #99

merged 1 commit into from
Sep 22, 2024

Conversation

ogaclejapan
Copy link
Contributor

To suppress updates of data and exceptions considered identical and to reduce recompositions, I have implemented the following two functions:

  • contentEquals
  • errorEquals

These are intended to be used similarly to the compare function in the SWR library.

To suppress updates of data and exceptions considered identical, and to reduce recompositions, I have implemented the
following two functions:

- contentEquals
- errorEquals

These are intended to be used similarly to the
[compare](https://swr.vercel.app/docs/advanced/performance#deep-comparison) function in the
[SWR](https://github.com/vercel/swr) library.
@ogaclejapan ogaclejapan added the enhancement New feature or request label Sep 22, 2024
@ogaclejapan ogaclejapan merged commit 7f56f4b into main Sep 22, 2024
3 checks passed
@ogaclejapan ogaclejapan deleted the compare branch September 22, 2024 04:16
@github-actions github-actions bot mentioned this pull request Oct 13, 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