Commit 35a6250
committed
fix(MUSD-747): no mount animation on education-seen path
Conditionally seed footerTranslateY and isStepperVisibleRef from
isStepperRendered. Previously both were unconditionally initialized
(translateY=240, ref=true), so on mount when education is already
seen the visibility-recompute effect saw next=false (no stepper) vs
ref.current=true and triggered a 300ms slide-in animation every
time the screen mounted post-education.
Lock the invariant via a withTiming spy: the education-seen path
must not call withTiming on mount or on the post-mount scroll
events. Tests previously missed this because withTiming is mocked
to resolve synchronously.
Addresses bugbot finding r3194824789.1 parent c90b11d commit 35a6250
2 files changed
Lines changed: 22 additions & 7 deletions
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
| 989 | + | |
988 | 990 | | |
989 | 991 | | |
990 | 992 | | |
| |||
997 | 999 | | |
998 | 1000 | | |
999 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1000 | 1006 | | |
1001 | | - | |
| 1007 | + | |
| 1008 | + | |
1002 | 1009 | | |
1003 | 1010 | | |
1004 | 1011 | | |
1005 | 1012 | | |
1006 | 1013 | | |
1007 | 1014 | | |
1008 | 1015 | | |
| 1016 | + | |
1009 | 1017 | | |
1010 | 1018 | | |
1011 | 1019 | | |
| |||
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
| |||
240 | 246 | | |
241 | 247 | | |
242 | 248 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
| |||
0 commit comments