rune-langium / visual-editor/src / useTemporalStore
Function: useTemporalStore()
ts
function useTemporalStore<T>(selector): T;Defined in: packages/visual-editor/src/store/history.ts:48
Access the temporal (undo/redo) store attached to the editor store.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
selector | (state) => T | Selector function to pick values from the temporal state. |
Returns
T
The selected value from the temporal store.