clear-react-router 1.8.7 → 1.8.8

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -406,7 +406,10 @@ var createRevalidateCache = (routerState) => {
406
406
  if (isCacheItemFresh({
407
407
  routeItem,
408
408
  pathname
409
- })) loaderStateRef.set(loaderMapRef[pathname]);
409
+ })) {
410
+ loaderStateRef.set(loaderMapRef[pathname]);
411
+ return;
412
+ }
410
413
  const promise = (async () => {
411
414
  if (!routeItem?.loader) return;
412
415
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-react-router",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "A lightweight, type-safe routing library for React applications",
5
5
  "author": "Andrew Bubnov",
6
6
  "scripts": {