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
shouldRevalidate doesn't prevent the initial loader call. It's used when the loader might be invalidated after an action call. Hence it takes actionResult as one of its params.
I'm not talking about the initial load I know that part is not prevented by shouldRevalidate. Also this is an app that was built using remix-spa and I tried to migrate it to rrv7 but noticed this bug.
In the remix version if I set v3_singleFetch to true is has the same behavior as RRv7 now. (shouldRevalidate not work no matter what evne if you pass false)
I'm assuming even when ssr is set to false singeFetch still causes shouldRevalidate to be ignored.
I'm using React Router as a...
framework
Reproduction
Getting started template modified to add another route and a link for testing purposes with ssr disabled.
https://github.com/aland-x/should-revalidate-test
https://stackblitz.com/github/aland-x/should-revalidate-test
System Info
Used Package Manager
npm
Expected Behavior
When navigating to
/test
from the link the loader should not revalidate because the shouldRevalidate export is false.Actual Behavior
When navigating to
/test
the loader revalidates.The text was updated successfully, but these errors were encountered: