setReStateInitialValue

This method set/update the initial value of the state.

import { setReStateInitialValue } from '@raulpesilva/re-state';
type setReStateInitialValue = (key: UniqueKey, value: any) => void;