Skip to content

Commit

Permalink
fix(useResetState): fix returned initialValue
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Aug 7, 2024
1 parent d2c0ec0 commit 5e1288f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-reset-state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export function useResetState<T>(initialState?: Gettable<T>, options?: UseResetS

useEffect(() => setInit(initialState), [initialState])

return [state, setState, reset, initialState] as const
return [state, setState, reset, init] as const
}

0 comments on commit 5e1288f

Please sign in to comment.