@sharpts/gui
Hooks and State
Reactive state, lifecycle hooks, memoization, callbacks, and refs.
@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43Symbols
ControlRefRetained reference to a mounted native control.
FunctioncreateControlRefCreates a retained ref that can be passed to a control outside a component render.
FunctioncreateSignalCreates reactive state that invalidates every GUI root that reads it.
Type aliasDispatchReducer action dispatcher returned by useReducer.
InterfaceMutableRefMutable object whose identity remains stable between renders.
Type aliasSignalSetterSetter returned by createSignal.
Type aliasStateSetterSetter returned by useState.
FunctionuseCallbackPreserves a callback identity while its dependencies remain equal.
FunctionuseControlRefCreates a retained control ref whose identity remains stable between renders.
FunctionuseEffectRuns an effect after the native tree commits and cleans it up before rerun or unmount.
FunctionuseMemoMemoizes a computed value while its dependencies remain equal.
FunctionuseReducerStores component-local state updated by a reducer.
FunctionuseRefCreates a mutable value whose object identity remains stable between renders.
FunctionuseStateStores component-local state between renders.