Commit 7ba2b82
committed
perf(landing): subscribe the hero resize listener once via a phase ref
The resize effect re-subscribed on every phase change (~30x/loop); read the
current phase from a ref so the listener is added once for the component's life.1 parent 7d1c766 commit 7ba2b82
1 file changed
Lines changed: 7 additions & 2 deletions
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| 916 | + | |
916 | 917 | | |
917 | | - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
918 | 923 | | |
919 | 924 | | |
920 | | - | |
| 925 | + | |
921 | 926 | | |
922 | 927 | | |
923 | 928 | | |
| |||
0 commit comments