Replies: 2 comments 1 reply
-
|
I also found the same problem and was also confused |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@b2m9 perhaps you're experiencing this behaviour
export function createRouter() {
return createTanStackRouter({
defaultPreload: "intent" // 😅
})
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed a behavior in the basic example that I cannot explain.
On route
/posts, I observe that when hovering over theLinkcomponent pointing at route/posts/$postIdit will trigger the loader function of/posts/$postIdand/posts. It also seems that while the loader for/posts/$postIdseems to adhere to the 30 sec cache time, the loader for/postsis being invoked over and over again.Why does it trigger the loader of its own route at all? Even adding something like
staleTime: 10_000doesn't seem to stop it in all cases (I've seen cases where it loads again after 2 seconds).Can someone explain this behavior and how can I change that? Constantly fetching all posts is a behavior that I don't need.
Beta Was this translation helpful? Give feedback.
All reactions