page-transition 0.1.0-beta.30 → 0.1.0-beta.31

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.
@@ -105,11 +105,16 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
105
105
  }
106
106
  if (state.current === 'entering') {
107
107
  transitionEnd({
108
- transitionEndObj: debug,
108
+ transitionEndObj: afterExit,
109
109
  transitionEndHandler,
110
110
  reverse,
111
111
  delayStep
112
112
  });
113
+ if (state.current !== 'entering') {
114
+ console.log('state.current !== entering');
115
+ console.log('state:', state.current);
116
+ return;
117
+ }
113
118
  console.log('state.current === entering');
114
119
  let elArray = [];
115
120
  if (transitionEndData.current.mirror) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-transition",
3
- "version": "0.1.0-beta.30",
3
+ "version": "0.1.0-beta.31",
4
4
  "description": "A page transition library for the Next.js App Router.",
5
5
  "license": "MIT",
6
6
  "files": [