S
SolidJS2mo ago
Jeremy

Behavior of query.set / cache.set

Hello, I am trying to preform some optimistic updates with the SolidStard data loading features. I've found the undocumented .set function on query (previously named cache) but can't seem to get it to mutate any data. Calling it seems to have no effect on createAsync stores. A couple threads have asked about this but have not received answers. Would anyone be able to shed light on the subject?
1 Reply
brenelz
brenelz2mo ago
Where are you using .set? I think the place you should use it is the onComplete function of an action

Did you find this page helpful?