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
What you were expecting:
react-admin should compile in Typescript when using @types/[email protected] or @types/react@17
What happened instead:
Throws an error at compile time due to the return type from the returned destructor from useSafeSetState in file ra_core/src/util/hooks.ts
What you were expecting:
react-admin should compile in Typescript when using @types/[email protected] or @types/react@17
What happened instead:
Throws an error at compile time due to the return type from the returned destructor from
useSafeSetState
in filera_core/src/util/hooks.ts
Type 'boolean' is not assignable to type 'void | { [UNDEFINED_VOID_ONLY]: never; }'
Root cause:
Type definitions for EffectCallback changed to explicitly disallow to return anything else than void from the Destructor
From @types/[email protected]
To @types/[email protected] (maybe already from earlier version but not tested)
Fix
2 character fix: replace () by {}
Environment
The text was updated successfully, but these errors were encountered: