type mutationCache.subscribe #4151
Unanswered
JoakimThorne
asked this question in
Q&A
Replies: 1 comment 7 replies
-
use type inference,
|
Beta Was this translation helpful? Give feedback.
7 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.
-
Hi,
I want to subscribe to the mutationCache to see when all mutations is completed.
mutationCache.subscribe((e: any) => { const { action, type, mutation } = e || {}; console.log('action: ', action); console.log('type: ', type); console.log('mutation: ', mutation); });
It seems like I cant type the
e
correctly. According to the docs it should beMutationCacheNotifyEvent
but it does not seem to be exposed.Beta Was this translation helpful? Give feedback.
All reactions