Skip to content

Commit 8d8b047

Browse files
zombieJclaude
andcommitted
fix: only return NONE for styleReady when motionAppear is enabled
This addresses the PR comment suggesting that styleReady should only return 'NONE' when motionAppear is true, otherwise it should always render the children. Ref: #73 (comment) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8eb87ba commit 8d8b047

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export default function useStatus(
312312
mergedStyle,
313313
asyncVisible ?? visible,
314314

315-
!mountedRef.current && currentStatus === STATUS_NONE
315+
!mountedRef.current && currentStatus === STATUS_NONE && motionAppear
316316
? // Appear
317317
'NONE'
318318
: // Enter or Leave

0 commit comments

Comments
 (0)