Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Replace fast-deep-equal with dequal #2648

Closed
rtritto opened this issue Jul 7, 2024 · 0 comments
Closed

Replace fast-deep-equal with dequal #2648

rtritto opened this issue Jul 7, 2024 · 0 comments

Comments

@rtritto
Copy link
Contributor

rtritto commented Jul 7, 2024

dequal is faster than fast-deep-equal: benchmarks

Atom Family

import { atom } from 'jotai'
import { atomFamily } from 'jotai/utils'
-import deepEqual from 'fast-deep-equal'
+import { dequal } from 'dequal/lite'

-const fooFamily = atomFamily((param) => atom(param), deepEqual)
+const fooFamily = atomFamily((param) => atom(param), dequal)
@pmndrs pmndrs locked and limited conversation to collaborators Jul 7, 2024
@dai-shi dai-shi converted this issue into discussion #2649 Jul 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant