Skip to content

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

ParameterTypeDescription
selector(state) => TSelector function to pick values from the temporal state.

Returns

T

The selected value from the temporal store.

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.