You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- This async function is called when a route is matched and passed the route's match object. If an error is thrown here, the route will be put into an error state and the error will be thrown during render. If thrown during a navigation, the navigation will be canceled and the error will be passed to the `onError` function. If thrown during a preload event, the error will be logged to the console and the preload will fail.
143
143
- If this function returns a promise, the route will be put into a pending state and cause rendering to suspend until the promise resolves. If this route's pendingMs threshold is reached, the `pendingComponent` will be shown until it resolves. If the promise rejects, the route will be put into an error state and the error will be thrown during render.
144
144
- If this function returns a `TLoaderData` object, that object will be stored on the route match until the route match is no longer active. It can be accessed using the `useLoaderData` hook in any component that is a child of the route match before another `<Outlet />` is rendered.
145
+
- Deps must be returned by your `loaderDeps` function in order to appear.
145
146
146
147
> 🚧 `opts.navigate` has been deprecated and will be removed in the next major release. Use `throwredirect({ to:'/somewhere' })` instead. Read more about the `redirect` function [here](../redirectFunction.md).
147
148
@@ -292,7 +293,7 @@ interface RemountDepsOptions<
292
293
- The return value needs to be JSON serializable.
293
294
- By default, a route component will not be remounted if it stays active after a navigation.
294
295
295
-
Example:
296
+
Example:
296
297
If you want to configure to remount a route component upon `params` change, use:
0 commit comments