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
Whenever React Router fetches __manifest for lazy route discovery, it also revalidates other routes unnecessarily.
Case issue:
In my app, I have a project page that functions like a video editor.
This page relies on many local states for user interactions (e.g., sliders, adjustments).
The initial values for these local states are from project page loader.
Problem:
When React Router automatically revalidates the project page router, the loader is triggered again, causing all my local states to reset. This makes the editing experience unusable, as all adjustments are lost.
// should not revalidate automatically, but in reality it still revalidated automatically.exportfunctionshouldRevalidate(){returnfalse;}exportdefaultfunctionProject({ loaderData }: Route.ComponentProps){const{ something }=loaderData;// this keep logged console.log("loaded");return(<ProjectMain/>);}
I'm using React Router as a...
framework
Reproduction
Whenever React Router fetches __manifest for lazy route discovery, it also revalidates other routes unnecessarily.
Case issue:
In my app, I have a project page that functions like a video editor.
This page relies on many local states for user interactions (e.g., sliders, adjustments).
The initial values for these local states are from project page
loader
.Problem:
When React Router automatically revalidates the project page router, the loader is triggered again, causing all my local states to reset. This makes the editing experience unusable, as all adjustments are lost.
System Info
Used Package Manager
npm
Expected Behavior
don't revalidate.
Actual Behavior
keep revalidating.
The text was updated successfully, but these errors were encountered: