Carl (klequis)
query function invalidates the cache every 10 clicks
So, that sounds like?
1. After
PRELOAD_TIMEOUT
a hover over a link won't have a cache available
2. The data stays in the cach until CACHE_TIMEOUT
, and then
- a) the cache is empty?
- b) the cache no longer exists?
I suspect the answer to this is above but I didn't get it: How can a user or Solid itself use the data during the period between PRELOAD_TIMEOUT
and CACHE_TIMEOUT
?34 replies
query function invalidates the cache every 10 clicks
ok technically the cache is long-lived since the data doesn't just disappear, but it's considered stale after a very short time. revalidate is so that you can refetch the data manually, since query
doesn't automatically refetch when it becomes stale
So you are saying that revalidate revalidates the 'data in the cache'?
And if so, does it still only last a very short time?34 replies
Store update produces error "current is undefined"
Thank you, the first one. The doc has:
It's an image from Eraser I can't edit. I'll open an issue.
I wanted to see how to use a function as in the doc example. This makes a nice toggle.
33 replies
I have a use case for createResource vs normal async await api call.
current router version is 0.13.6. I don't know the exact version createAsync was introduced but it was in 0.10.x which was a significant change. The doc has all be updated so maybe consider upgrading if you haven't already.
18 replies