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

Improve API compatibility with React's useSyncExternalStore #460

Open
SandroMaglione opened this issue Sep 11, 2024 · 1 comment
Open

Improve API compatibility with React's useSyncExternalStore #460

SandroMaglione opened this issue Sep 11, 2024 · 1 comment

Comments

@SandroMaglione
Copy link

SandroMaglione commented Sep 11, 2024

#460

So that we know when to update cache

@zxch3n
Copy link
Member

zxch3n commented Sep 12, 2024

It sounds useful. It shouldn't negatively affect performance either. We'll try to add it in v1.0.

For your current work, another approach is to check events to determine if the list value has changed. If it hasn't changed, you can use the previous cache.

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

No branches or pull requests

2 participants