You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useObjectState is typed as follows: export function useObjectState<T>(initialValue: T): [T, (arg: T) => void];
However, like the basic react state setter hook, the useObjectState setter is also capable of taking a callback as an argument, per the documentation at https://usehooks.com/useobjectstate. This is not supported by the current typing, which should be adjusted to allow it.
The text was updated successfully, but these errors were encountered:
useObjectState
is typed as follows:export function useObjectState<T>(initialValue: T): [T, (arg: T) => void];
However, like the basic react state setter hook, the
useObjectState
setter is also capable of taking a callback as an argument, per the documentation at https://usehooks.com/useobjectstate. This is not supported by the current typing, which should be adjusted to allow it.The text was updated successfully, but these errors were encountered: