Link causing refresh of page
When would using and clicking the <Link /> cause a page to refresh?
2 Replies
correct-apricotOP•11mo ago

correct-apricotOP•11mo ago
When I click on a link within the _app layout, <Link to="/cases/$caseId" params={{clientId: "id-here"}} /> the page is refreshed but do see the right route/page
it also only happens on first visit to the page
I figured it out! I was using useSuspenseQuery on the page and forgot to put the ensureQueryData within the route loader 🙂