Route revalidation #9387
Unanswered
yunior0814
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Not sure if this is what you are looking for, but I use the useNavigation hook. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How I can get a loading state in this scenario when the route is revalidate?
function Posts(){
const data = useLoaderData();
return <Suspense fallback={
Loading layout
}>}
<Route path="Post" loader={referLoaderData} element={} shouldRevalidate={({ currentUrl }) => {
return currentUrl.pathname === "/comments/new";
}} />
<Route path="/comments/new" action={newCommentAction} element={
...} />Beta Was this translation helpful? Give feedback.
All reactions