page-transition 0.1.0-beta.31 → 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,6 +57,12 @@ export function useHandleLinkClick({ container, handleLinkClick, currentPathname
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
const bug = useTransitionEndObj({
|
|
61
|
+
transitionEndData,
|
|
62
|
+
fn: () => {
|
|
63
|
+
console.log('bug');
|
|
64
|
+
}
|
|
65
|
+
});
|
|
60
66
|
handleLinkClick.current = useCallback((e, url) => {
|
|
61
67
|
e.preventDefault();
|
|
62
68
|
nextPage.current = url;
|
|
@@ -92,7 +98,7 @@ export function useHandleLinkClick({ container, handleLinkClick, currentPathname
|
|
|
92
98
|
}
|
|
93
99
|
if (state.current === 'entering') {
|
|
94
100
|
transitionEnd({
|
|
95
|
-
transitionEndObj:
|
|
101
|
+
transitionEndObj: bug,
|
|
96
102
|
transitionEndHandler,
|
|
97
103
|
reverse,
|
|
98
104
|
delayStep
|
|
@@ -63,10 +63,10 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
|
|
|
63
63
|
useUse.current = false;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const bug = useTransitionEndObj({
|
|
67
67
|
transitionEndData,
|
|
68
68
|
fn: () => {
|
|
69
|
-
console.log('
|
|
69
|
+
console.log('bug');
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
useEffect(() => {
|
|
@@ -105,7 +105,7 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
|
|
|
105
105
|
}
|
|
106
106
|
if (state.current === 'entering') {
|
|
107
107
|
transitionEnd({
|
|
108
|
-
transitionEndObj:
|
|
108
|
+
transitionEndObj: bug,
|
|
109
109
|
transitionEndHandler,
|
|
110
110
|
reverse,
|
|
111
111
|
delayStep
|
|
@@ -113,6 +113,7 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
|
|
|
113
113
|
if (state.current !== 'entering') {
|
|
114
114
|
console.log('state.current !== entering');
|
|
115
115
|
console.log('state:', state.current);
|
|
116
|
+
console.log('oben');
|
|
116
117
|
return;
|
|
117
118
|
}
|
|
118
119
|
console.log('state.current === entering');
|
|
@@ -133,11 +134,11 @@ export function usePopState({ container, currentPathname, transitionEndData, tra
|
|
|
133
134
|
if (state.current !== 'entering') {
|
|
134
135
|
console.log('state.current !== entering');
|
|
135
136
|
console.log('state:', state.current);
|
|
136
|
-
|
|
137
|
+
console.log('unten');
|
|
137
138
|
}
|
|
138
139
|
console.log('updatePlaybackRate done');
|
|
139
140
|
transitionEnd({
|
|
140
|
-
transitionEndObj:
|
|
141
|
+
transitionEndObj: pop,
|
|
141
142
|
transitionEndHandler,
|
|
142
143
|
reverse,
|
|
143
144
|
delayStep
|