Skip to content

Commit

Permalink
chore: reloadDocument for resource route
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Aug 13, 2024
1 parent 5f76667 commit a64427c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/playground/app/routes/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let LINKS = [
{ to: "/fetcher", label: "Fetcher" },
{ to: "loader-error", label: "Loader Error" },
{ to: "route-error", label: "Route Error" },
{ to: "resource-route-error", label: "Resource Route Loader Error" },
{ to: "resource-route-error", label: "Resource Route Loader Error", reloadDocument: true },
] as const;

export default function Layout() {
Expand Down Expand Up @@ -39,6 +39,7 @@ export default function Layout() {
<li key={link.to}>
<NavLink
to={link.to}
reloadDocument={'reloadDocument' in link ? link.reloadDocument : false}
className={({ isActive }) => {
return isActive
? "text-red-500 underline underline-offset-2"
Expand Down

0 comments on commit a64427c

Please sign in to comment.