Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
queryCache.subscribe(callback)
calls thecallback()
with anevent: QueryCacheNotifyEvent
argument. Here are the possibletypes
thatevent
might be:query/packages/query-core/src/queryCache.ts
Lines 22 to 59 in 3c9df20
I'm curious about the differences between these types, and in particular what we expect to change when the events are fired? Is it expected that
updated
will have itsquery.state.data
changed? Or will that only happen whenobserverResultsUpdated
is fired?Basically just looking for more documentation around these event types, and what kinds of differences are expected on an underlying
query
object when one of these types are fired?added
removed
updated
observerAdded
observerRemoved
observerResultsUpdated
observerOptionsUpdated
Beta Was this translation helpful? Give feedback.
All reactions