Commit 6fc29db
fix(TableHandles): guard stale block state after doc updates
Optional chaining on `this.state?.block.id` did not protect when `block`
was undefined after `update()` refreshed a removed table block. Clear
internal PluginView state instead of only hiding handles, and allow
emitUpdate to sync undefined state to the extension store.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent ec9c151 commit 6fc29db
1 file changed
Lines changed: 6 additions & 10 deletions
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
| |||
298 | 294 | | |
299 | 295 | | |
300 | 296 | | |
301 | | - | |
| 297 | + | |
302 | 298 | | |
303 | 299 | | |
304 | 300 | | |
| |||
543 | 539 | | |
544 | 540 | | |
545 | 541 | | |
546 | | - | |
547 | | - | |
548 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
549 | 545 | | |
550 | 546 | | |
551 | 547 | | |
| |||
628 | 624 | | |
629 | 625 | | |
630 | 626 | | |
631 | | - | |
| 627 | + | |
632 | 628 | | |
633 | 629 | | |
634 | 630 | | |
| |||
0 commit comments