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
We need some new helper APIs, following the mobx way should be good
resolved and subscriptions
I think the most intuitive way, is that resolved works with subscriptions the same way as queries (so that you can replace stale data in your app with live).
constunlisten=autorun(()=>{// This console logs every time a new notification comes in// or when query.something changes in the cacheconsole.log(subscription.notification)console.log(query.something)},(error)=>{// when an error comes inconsole.log(error)});// stops listening for changesunlisten()
The text was updated successfully, but these errors were encountered:
The current API for subscribing to subscriptions is:
We need some new helper APIs, following the mobx way should be good
resolved
and subscriptionsI think the most intuitive way, is that resolved works with subscriptions the same way as queries (so that you can replace stale data in your app with live).
autorun
For listening to a stream of data
The text was updated successfully, but these errors were encountered: