const useDerivedState: <T>( initialState: T | () => T, version?: number, ) => [T, (t: T | (t: T) => T) => void]
packages / workbench / src / hooks / useDerivedState.ts