* Create initial preserved state
()
| 25 | * Create initial preserved state |
| 26 | */ |
| 27 | function createPreservedState(): PreservedState { |
| 28 | return { |
| 29 | scrollPositions: new Map(), |
| 30 | focusedElementId: null, |
| 31 | pendingInputValues: new Map(), |
| 32 | }; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Global state store for all surfaces |