Skip to content

fix(dia-text-reveal): mark the sweep as played when it completes - #1109

Merged
jinho-yeom merged 1 commit into
magicuidesign:mainfrom
jinho-yeom:fix/dia-text-reveal-strict-mode
Nov 27, 2026
Merged

jinho-yeom merged 1 commit into
magicuidesign:mainfrom
jinho-yeom:fix/dia-text-reveal-strict-mode

Conversation

@jinho-yeom

Copy link
Copy Markdown
Member

Why

DiaTextReveal set hasPlayedRef before the sweep started. When React ran the effect cleanup and then the effect again, the second run returned early and the text stayed transparent. Fixes #1107.

What changed

  • hasPlayedRef is now set in onComplete, so an interrupted sweep starts again and a completed sweep does not replay.

Scope

  • Affects StrictMode with startOnView={false}, and <Activity> hide and show during the sweep. Default props were not affected on mount.

Verification

  • Dev server with StrictMode and startOnView={false}: the text stayed transparent before the change and reaches the solid text color after it.
  • <Activity> hidden and shown during the sweep: frozen before, completes after.

@vercel

vercel Bot commented Nov 27, 2026

Copy link
Copy Markdown

@jinho-yeom is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@jinho-yeom
jinho-yeom merged commit 2fa9719 into magicuidesign:main Nov 27, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DiaTextReveal stays permanently invisible under React StrictMode

1 participant