Skip to content

Commit c391bb7

Browse files
ENvironmentSetanakin_karrot
andauthored
fix(plugin-basic-ui): Fix a bug that entrance transitions are not applied (#624)
Co-authored-by: anakin_karrot <anakin@daangn.com>
1 parent 6dbc319 commit c391bb7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.changeset/rude-schools-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackflow/plugin-basic-ui": patch
3+
---
4+
5+
Fix a bug that entrance transition is not applied.

extensions/plugin-basic-ui/src/components/AppScreen.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,16 @@ const AppScreen: React.FC<AppScreenProps> = ({
234234
>
235235
<div
236236
ref={appScreenRef}
237-
className={clsx(css.appScreen({ transitionState }), className)}
237+
className={clsx(
238+
css.appScreen({
239+
transitionState:
240+
transitionState === "enter-done" ||
241+
transitionState === "exit-done"
242+
? transitionState
243+
: lazyTransitionState,
244+
}),
245+
className,
246+
)}
238247
style={assignInlineVars(
239248
compactMap({
240249
[globalVars.backgroundColor]: backgroundColor,

0 commit comments

Comments
 (0)