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
equal-aquaOP•14mo 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 },
});conscious-sapphire•14mo ago
please provide a minimal complete example by forking one of the existing router examples on Stackblitz
equal-aquaOP•14mo 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. 🙂