reload
Edit this pageReload is a response helper built on top of revalidate. It will receive a cache key, or an array of cache keys, to invalidate those queries, and cause them to fire again.
The code snippet above uses the cache-key from a user-defined query (getTodo
).
To better understand how queries work, check the query documentation.