sean
sean
SSolidJS
Created by sean on 1/1/2025 in #support
How to use query.set (prev cache.set) to mutate async data for optimistic updates?
i checked the docs, and i can’t seem to find the onComplete hook. perhaps it’s undocumented? do u have example usage? https://docs.solidjs.com/solid-router/reference/data-apis/action
9 replies
SSolidJS
Created by sean on 1/1/2025 in #support
How to use query.set (prev cache.set) to mutate async data for optimistic updates?
i checked other implementations here and they didn’t call revalidate() as that seems to revalidate the cache, not force query() to be re-run however, when i did try to query.set, the data didn’t get mutated. so i assumed query needed to be fired with this, how can i query.set and see my change reflect?
9 replies