@xylabs/sdk-react
    Preparing search index...

    Variable useResetStateConst

    useResetState: <T>(resetValue: T) => [T, Dispatch<SetStateAction<T>>]

    A state that resets each time the initial value is changed

    Type Declaration

      • <T>(resetValue: T): [T, Dispatch<SetStateAction<T>>]
      • Type Parameters

        • T

        Parameters

        • resetValue: T

        Returns [T, Dispatch<SetStateAction<T>>]