T
TanStack•17mo ago
secure-lavender

Loader can be triggered by Link Component but not when using useNavigate.

When clicking the Link Component the destination loader is being triggered but when using navigate the destination component is being rendered but the loader was not triggered.
3 Replies
secure-lavender
secure-lavenderOP•17mo ago
Destination loader works when <NavLink label="Categories" component={Link} to={/admin/${selectedBranch}/categories} /> Not working when navigate({ to: "/admin/$branchId/categories", params: { branchId: branchId }, });
foreign-sapphire
foreign-sapphire•17mo ago
please provide a minimal complete example by forking one of the existing router examples on Stackblitz
secure-lavender
secure-lavenderOP•17mo ago
I tried to replicate the issue in Stackblitz but it's working fine. Then I saw that the example uses the latest version (v1.45.10) deployed yesterday. Now my code is working fine. 🙂

Did you find this page helpful?