Section navigation only changes the :section path param, but the loader returns the same user/draft-status/linked-account payload for every section. By default React Router re-runs the loader (3 DB queries) on each tab switch. Add shouldRevalidate to skip revalidation when only the section changes, while still refreshing after mutations. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jt8Hhsio4bHGMaDZy7ftBs |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||