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
if you update your typing to the latest version i.e. @types/react": "18.2.14 you should observe this as well.
Argument of type'() => Promise<void>' is not assignable to parameter of type'TransitionFunction'.
Type 'Promise<void>' is not assignable to type'VoidOrUndefinedOnly'
The text was updated successfully, but these errors were encountered:
I have recently discovered that the transition function can not be
async
according to the docs https://react.dev/reference/react/useTransition#react-doesnt-treat-my-state-update-as-a-transitionif you update your typing to the latest version i.e.
@types/react": "18.2.14
you should observe this as well.The text was updated successfully, but these errors were encountered: