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

valtio/state-snapshot-rule for useMemo #45

Open
cqh963852 opened this issue Feb 13, 2024 · 1 comment
Open

valtio/state-snapshot-rule for useMemo #45

cqh963852 opened this issue Feb 13, 2024 · 1 comment

Comments

@cqh963852
Copy link

image

valtio/state-snapshot-rule should not show warn in useMemo.

There are situations where useMemo needs to track snapshots.

@dai-shi
Copy link
Member

dai-shi commented Feb 13, 2024

useMemo needs to track snapshots.

that doesn't work as expected. thus, the rule warns it.

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