Commit 8eb87ba
fix: Skip first frame render with motion appear (#73)
* refactor: add NONE state for styleReady to distinguish initial mount
On initial mount when status is STATUS_NONE, return 'NONE' instead of
true to prevent rendering children until style is ready. This improves
the appear animation behavior by ensuring style synchronization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: update styleReady test to use correct className assertion
Removed TODO and updated className assertion to verify the first
render (prepare stage) with correct className value. Also changed
from toHaveBeenCalled to checking mockRender.mock.calls[0][0]
to match the first render call.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve TypeScript error for jest.mock.calls access
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 634cdf2 commit 8eb87ba
3 files changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
315 | 322 | | |
316 | 323 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
495 | 513 | | |
496 | 514 | | |
497 | 515 | | |
| |||
0 commit comments