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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm brand new to TS Router and am pretty sure I'm just don't understand the correct implmentation, so am hoping someone smarter can help.
I have the following routes
<Log/>
is a layout component with an<Outlet/>
that only shows whenshiftId
existsLog.tsx
routes/log/route.tsx
routes/log/$shiftId.tsx
I want the loader in route.tsx to only run when there is no
$shiftId
Currently, it is loading the mockLogData every time.
I looked at the docs and GH issues/discussion which all seem to suggest that shouldReload: false should prevent this behaviour.
Am I going about this completely wrong?
Beta Was this translation helpful? Give feedback.
All reactions