page-transition 0.1.0-beta.32 → 0.1.0-beta.33

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.
@@ -57,12 +57,10 @@ export function useHandleLinkClick({ container, handleLinkClick, currentPathname
57
57
  });
58
58
  }
59
59
  });
60
- const removeEnterAddExit = useTransitionEndObj({
60
+ const bug = useTransitionEndObj({
61
61
  transitionEndData,
62
62
  fn: () => {
63
- container.current?.classList.remove('enter');
64
- container.current?.classList.add('exit');
65
- state.current = 'exiting';
63
+ console.log('bug');
66
64
  }
67
65
  });
68
66
  handleLinkClick.current = useCallback((e, url) => {
@@ -100,7 +98,7 @@ export function useHandleLinkClick({ container, handleLinkClick, currentPathname
100
98
  }
101
99
  if (state.current === 'entering') {
102
100
  transitionEnd({
103
- transitionEndObj: removeEnterAddExit,
101
+ transitionEndObj: bug,
104
102
  transitionEndHandler,
105
103
  reverse,
106
104
  delayStep
@@ -63,12 +63,10 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
63
63
  useUse.current = false;
64
64
  }
65
65
  });
66
- const removeEnterAddExit = useTransitionEndObj({
66
+ const bug = useTransitionEndObj({
67
67
  transitionEndData,
68
68
  fn: () => {
69
- container.current?.classList.remove('enter');
70
- container.current?.classList.add('exit');
71
- state.current = 'exiting';
69
+ console.log('bug');
72
70
  }
73
71
  });
74
72
  useEffect(() => {
@@ -107,7 +105,7 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
107
105
  }
108
106
  if (state.current === 'entering') {
109
107
  transitionEnd({
110
- transitionEndObj: removeEnterAddExit,
108
+ transitionEndObj: bug,
111
109
  transitionEndHandler,
112
110
  reverse,
113
111
  delayStep
@@ -137,11 +135,10 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
137
135
  console.log('state.current !== entering');
138
136
  console.log('state:', state.current);
139
137
  console.log('unten');
140
- return;
141
138
  }
142
139
  console.log('updatePlaybackRate done');
143
140
  transitionEnd({
144
- transitionEndObj: afterExit,
141
+ transitionEndObj: pop,
145
142
  transitionEndHandler,
146
143
  reverse,
147
144
  delayStep
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-transition",
3
- "version": "0.1.0-beta.32",
3
+ "version": "0.1.0-beta.33",
4
4
  "description": "A page transition library for the Next.js App Router.",
5
5
  "license": "MIT",
6
6
  "files": [