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
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.models._index/route.tsx
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -176,15 +176,19 @@ export function shouldRevalidate({
176
176
defaultShouldRevalidate,
177
177
}: ShouldRevalidateFunctionArgs){
178
178
// The active tab is persisted in the URL (?tab=), but no loader data depends
179
-
// on it — so switching tabs must not refetch. Any other param change (period,
180
-
// from/to, …) revalidates as normal.
179
+
// on it — so switching tabs must not refetch. Any other change (a different
180
+
// project/environment in the path, or a period/from/to param) revalidates as
181
+
// normal, since the loader data is scoped to the path params + time range.
0 commit comments