Skip to content

Commit 9711746

Browse files
committed
fix: fix Transition component
1 parent 79bcccb commit 9711746

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.storybook/theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default create({
77
brandUrl: 'https://fakundo.github.io/react-transitioning/',
88
brandImage: undefined,
99
brandTarget: '_self',
10-
1110
appContentBg: '#1B1C1D',
1211
appPreviewBg: '#1B1C1D',
1312
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-transitioning",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "React components for easily implementing basic CSS animations and transitions",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",

src/Transition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function Transition(props: TransitionProps) {
165165
tmRef.current = setTimeout(setPhase, duration, nextPhase);
166166
}
167167
} else {
168-
setPhase(nextPhase);
168+
tmRef.current = setTimeout(setPhase, 0, nextPhase);
169169
}
170170
}
171171
return () => {

0 commit comments

Comments
 (0)