Commit b9c168a
committed
fix: defer synchronous emit() calls to prevent React render-phase violations
Both emit() calls for the 'refetching' event fired synchronously during
React's render phase, triggering useEffectEvent errors. Wrapping in
queueMicrotask() defers them to after render completes.1 parent 60c9377 commit b9c168a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
0 commit comments