Repository navigation
Commit dc321df
committed
fix: bind snapshot patterns for defaulted destructured params and add useLinkedState shape support
- strong-mode: call bindSnapshotPattern in the AssignmentPattern branch so
destructured updater/reducer parameters with defaults get snapshot bindings
- strong-state: extend initialShape to handle useLinkedState (argument index 1)
so .push/.set/.add on linked state report OCTANE_STRONG_SNAPSHOT_MUTATION1 parent 9c49f52 commit dc321df
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2325 | 2325 | | |
2326 | 2326 | | |
2327 | 2327 | | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2328 | 2336 | | |
2329 | 2337 | | |
2330 | 2338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
| 234 | + | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments