page-transition 0.1.0-beta.12 → 0.1.0-beta.13

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.
@@ -55,7 +55,7 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
55
55
  resolveFn.current = resolve;
56
56
  resolveUseFn.current = reject;
57
57
  new Promise((resolveNavigating) => {
58
- if (state.current === "navigating" || state.current === "entering") {
58
+ if (state.current === "navigating" || state.current === "exiting") {
59
59
  if (currentPathname.current !== window.location.pathname) {
60
60
  if (checkTransitionFinish(transitionEndData.current, () => {
61
61
  resolveFn.current?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-transition",
3
- "version": "0.1.0-beta.12",
3
+ "version": "0.1.0-beta.13",
4
4
  "description": "A page transition library for the Next.js App Router.",
5
5
  "license": "MIT",
6
6
  "files": [