If you called revalidate
with a transition, this will be true
while the
new data is being fetched.
Update the local cache for the data.
If you want to update the cache and re-feth the data, use revalidate
instead.
Trigger a re-fetch of the data.
By default, it will do so in a transition (meaning, React will show the old data and wait for the updated data to be fetched before showing it).
If you want to suspend the component tree and show the fallback of the nearest
Suspense
boundary, pass withTransition: false
.
Optional
nextValueOrUpdaterFn: SetStateArg<V>Optional
options: { Optional
withIf you want to update the cache without re-fetching the data, use mutate
instead.
Generated using TypeDoc
Get the data. If it has not been fetched before, this will suspend the component.