Commit 8ddf5d6
authored
fix: early return in toolbar button to avoid unneeded calls to useInt… (#24)
* fix: early return in toolbar button to avoid unneeded calls to useInteractions
* fix: isolate interactionsFiltered into separate useSelect to reduce editor re-renders and prevent Kadence inspector tab reset
* fix: use specific dependency to avoid extra calls1 parent eacb69f commit 8ddf5d6
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
251 | | - | |
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
| 262 | + | |
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
| |||
0 commit comments