Replies: 1 comment
-
|
getPost(foo).refresh() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the Remote Function docs, it says:
WTF does "while they're on the page" mean? What does "cached" (an overloaded term) mean?
My working interpretation of what was meant is:
Queries run once per navigation. Re-running the same query returns the exact same data reference (so
getPosts() === getPosts()istrue). Because the query value is stable, you don’t need to store it in a local reference (for example const posts = getPosts()) in order to update the query.Is my interpretation correct? If it's cached (in memory?), what busts the cache? Navigation? 5 second timer?
Beta Was this translation helpful? Give feedback.
All reactions