CoreAsyncSetStateFnOn this pageAsyncSetStateFn Overview Type: type A function that accepts the current state and default state as parameters and returns a new state or a Promise that resolves into the new state. type AsyncSetStateFn<State> = (currentState: State, defaultState: State) => State | Promise<State>