new UIWLState()
Methods
-
staticUIWLState.dispatch(action)
Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 60 -
Dispatches an action to update the global state. The method handles different action types and updates the state accordingly.
Name Type Description actionIWLSStateAction The action object containing the type and payload (if any) for the state update.
-
staticUIWLState.get(key){unknown}
Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 42 -
Retrieves a specific value from the global state using a key.
Name Type Description keystring The key of the state value to retrieve.
Returns:
Type Description unknown The value associated with the specified key. -
staticUIWLState.getState(){IWLSState}
Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 25 -
Retrieves the entire state object.
Returns:
Type Description IWLSState The current global state of the RSUI. -
staticUIWLState.set(key, value)
Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 51 -
Sets a specific value in the global state.
Name Type Description keystring The key of the state value to update.
valueunknown The new value to set for the specified key.
-
staticUIWLState.setState(state)
Layers/GoWaterLeakRemoteSensing/clases/UI/state/index.ts, line 33 -
Updates the global state with the provided state object.
Name Type Description stateIWLSState The new state to be merged into the current state.
