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
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
I thought that would get me unique dataloaders per query, but it actually gets me unique dataloaders per update. (which makes sense in hindsight) The issue is that if the same record is updated twice while a user stays subscribed throughout, they'll get stale data the second time the record is updated because the DataLoader will just return the value from its cache.
Really, what I want for my dataloaders is for them to be created every time a record is changed to avoid stale reads. How do I do that? (it's not onConnect, but it's also not onOperation since that runs once per subscription, which is also not what I need)
The text was updated successfully, but these errors were encountered:
I'm using this package in combination with a bunch of DataLoaders. At the moment, I just do the following:
I thought that would get me unique dataloaders per query, but it actually gets me unique dataloaders per update. (which makes sense in hindsight) The issue is that if the same record is updated twice while a user stays subscribed throughout, they'll get stale data the second time the record is updated because the DataLoader will just return the value from its cache.
Really, what I want for my dataloaders is for them to be created every time a record is changed to avoid stale reads. How do I do that? (it's not
onConnect
, but it's also notonOperation
since that runs once per subscription, which is also not what I need)The text was updated successfully, but these errors were encountered: