You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use those interfaces in my application for processing QueryCacheNotifyEvent. Unfortunately they not seem to be exported. Is there a reason for this?
If someone cares why I would want that: What I am doing is subscribing to the queryCache and if a change is made I update some canvas elements manually. For this I want to do a proper processing of the QueryCacheNotifyEvent. Having access to that interface would make things easier.
Little side question, if maybe someone is able to answer. Is there a built-in way to read the previous value before this event changed the cache? I looked into cacheEvent.query.state.datacacheEvent.action.data and queryClient.getQueryData(["xy"]) but they all hold the new value.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use those interfaces in my application for processing QueryCacheNotifyEvent. Unfortunately they not seem to be exported. Is there a reason for this?
If someone cares why I would want that: What I am doing is subscribing to the queryCache and if a change is made I update some canvas elements manually. For this I want to do a proper processing of the QueryCacheNotifyEvent. Having access to that interface would make things easier.
query/packages/query-core/src/queryCache.ts
Lines 22 to 70 in 3c9df20
Little side question, if maybe someone is able to answer. Is there a built-in way to read the previous value before this event changed the cache? I looked into
cacheEvent.query.state.data
cacheEvent.action.data
andqueryClient.getQueryData(["xy"])
but they all hold the new value.Beta Was this translation helpful? Give feedback.
All reactions