Response helpers
Edit this pageNote: These response helpers must be called within a cache
or action
function. If you want to
programmatically navigate, you will want to use the useNavigate primitive.
Redirect
Signature: redirect(path, options)
Redirects to the next route.
Reload
Signature: reload(options)
Reloads the data at the given cache key on the current route.
json
Signature: json(data, options)
Returns JSON data from an action while also providing options for controlling revalidation of cache data on the route.