Commit f516301
committed
fix: call onLiveEdit on registration only in builder
Avoid calling onLiveEdit in apps other than builder as it can lead to
multiple calls in Timeline and LP. Resolving this issue would then
require storing some state to ensure the callback is only called from
one code location on the first load which then has the posssibiliy of
breaking setups that rely on the behaviour of the callback being called
multiple times.1 parent a0d3a5d commit f516301
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
162 | | - | |
| 167 | + | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| |||
0 commit comments