max
Mutate data for optimistic updates with createAsync
Thanks, I was reading through some github discussions and saw that there is a cache.set() method, do I just call this with the key value pair for the cache I want to update? Do I then need to call revalidate()?
Also, just reading through the Cache Architecture on Github and it says:
"cache API can be used with createResource but it must be passed into the tracking argument not the fetcher which means that you can't only pass a single argument as createResource defaults to just the fetcher. So to use a cache function with createResource you would need to:
"
Is that all that needs to be done to use cache with createResource?
14 replies