We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The type of usePrevious:
usePrevious
usehooks/index.d.ts
Line 219 in 90fbbb4
And should be updated to:
export function usePrevious<T>(newValue: T): T | null;
as the previous state here can be null:
previous
usehooks/index.js
Line 1019 in 90fbbb4
Potentially related issues: #275, #316