page-transition 0.1.0-beta.15 → 0.1.0-beta.16

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.
@@ -110,7 +110,8 @@ export function CssTransitionProvider({ header, options, children }) {
110
110
  state.current = 'entering';
111
111
  }
112
112
  });
113
- currentPathname.current = pathname;
113
+ if (state.current === 'navigating')
114
+ currentPathname.current = pathname;
114
115
  reverse.current.lock = false;
115
116
  }, [pathname]);
116
117
  const value = useMemo(() => ({ handleLinkClick, overlayWrapper, overlayItems }), []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-transition",
3
- "version": "0.1.0-beta.15",
3
+ "version": "0.1.0-beta.16",
4
4
  "description": "A page transition library for the Next.js App Router.",
5
5
  "license": "MIT",
6
6
  "files": [