@common-stack/rollup-vite-utils 8.6.1-alpha.9 → 9.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,9 +125,9 @@ export const links: LinksFunction = () => {
125
125
  else {
126
126
  exports += `
127
127
  export function shouldRevalidate(params) {
128
- // Skip revalidation for GET navigations with identical params (includes back-button POP navigation)
129
- if (params.formMethod === "GET" && isEqual(params.currentParams, params.nextParams)) return false;
130
- // Skip revalidation when pathname hasn't changed (e.g., back button to same route)
128
+ // Skip revalidation for non-submission navigations (GET + POP/back-forward) with identical params
129
+ if ((!params.formMethod || params.formMethod === "GET") && isEqual(params.currentParams, params.nextParams)) return false;
130
+ // Skip revalidation when pathname hasn't changed
131
131
  if (params.currentUrl.pathname === params.nextUrl.pathname) return false;
132
132
  return params.defaultShouldRevalidate;
133
133
  }
@@ -125,9 +125,9 @@ export const links: LinksFunction = () => {
125
125
  else {
126
126
  exports += `
127
127
  export function shouldRevalidate(params) {
128
- // Skip revalidation for GET navigations with identical params (includes back-button POP navigation)
129
- if (params.formMethod === "GET" && isEqual(params.currentParams, params.nextParams)) return false;
130
- // Skip revalidation when pathname hasn't changed (e.g., back button to same route)
128
+ // Skip revalidation for non-submission navigations (GET + POP/back-forward) with identical params
129
+ if ((!params.formMethod || params.formMethod === "GET") && isEqual(params.currentParams, params.nextParams)) return false;
130
+ // Skip revalidation when pathname hasn't changed
131
131
  if (params.currentUrl.pathname === params.nextUrl.pathname) return false;
132
132
  return params.defaultShouldRevalidate;
133
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/rollup-vite-utils",
3
- "version": "8.6.1-alpha.9",
3
+ "version": "9.0.1-alpha.1",
4
4
  "description": "Client Module for react app",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -35,8 +35,8 @@
35
35
  "watch": "npm run build:lib:watch"
36
36
  },
37
37
  "dependencies": {
38
- "@common-stack/client-react": "8.6.1-alpha.9",
39
- "@common-stack/core": "8.6.1-alpha.9",
38
+ "@common-stack/client-react": "9.0.1-alpha.1",
39
+ "@common-stack/core": "9.0.1-alpha.1",
40
40
  "@rollup/pluginutils": "^5.3.0",
41
41
  "ajv": "^8.17.1",
42
42
  "dot-prop": "^9.0.0",
@@ -63,8 +63,8 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "b660069d9fb23784d2a755574be34938e5c8778b",
67
66
  "typescript": {
68
67
  "definition": "lib/index.d.ts"
69
- }
68
+ },
69
+ "gitHead": "448e8a705be6483f6aa357d79098c43643ffa059"
70
70
  }