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

fix: suppress warning about non-reactivity when calling .refetch() (occurs in e.g., async blocks in actions) #1576

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

gbj
Copy link
Collaborator

@gbj gbj commented Aug 23, 2023

This warning is already suppressed in event listeners anyway. This suppresses for resource refetches in general, in case they are called in async blocks like an action or spawn_local. .refetch() re-loads the resource, which makes some reactive calls, but this shouldn't be reactive in any case.

@gbj gbj merged commit ec4bd76 into main Aug 24, 2023
@gbj gbj deleted the refetch-warning branch August 24, 2023 00:57
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 this pull request may close these issues.

1 participant