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

Add usage tracking capability #4

Closed
dai-shi opened this issue Mar 13, 2024 · 0 comments · Fixed by #7
Closed

Add usage tracking capability #4

dai-shi opened this issue Mar 13, 2024 · 0 comments · Fixed by #7
Assignees

Comments

@dai-shi
Copy link
Member

dai-shi commented Mar 13, 2024

use-valtio/README.md

Lines 56 to 57 in 9d01480

There's a drawback (but it can be a benefit) with `useValtio`.
Unlike `useSnapshot`, `useValtio` doesn't have usage tracking capability.

I thought it might be interesting with explicit dependency (and #3 supports it), Valtio comes with usage tracking, so use-valtio should do the same for comparison.

Originally, as there was a compatibility issue with memo, explicit dependency might have seemed good, but now it can be solved pmndrs/valtio#866, let's do the same.

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 a pull request may close this issue.

1 participant