The type of `usePrevious`: https://github.com/uidotdev/usehooks/blob/90fbbb4cc085e74e50c36a62a5759a40c62bb98e/index.d.ts#L219 And should be updated to: ```ts export function usePrevious<T>(newValue: T): T | null; ``` as the `previous` state here can be null: https://github.com/uidotdev/usehooks/blob/90fbbb4cc085e74e50c36a62a5759a40c62bb98e/index.js#L1019 Potentially related issues: https://github.com/uidotdev/usehooks/issues/275, https://github.com/uidotdev/usehooks/pull/316