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
@refinedev/core's useMany hook throws unhandled errors if ids is not a valid array or resource prop is missing. Currently only check for these values are done by types but not in runtime.
Steps To Reproduce
Import useMany from @refinedev/core
Ignore type error and pass ids as undefined
See the errors thrown without any chance of handling them except error boundaries
Expected behavior
This needs to be handled in the implementation and instead of throwing unexpected errors, query must be disabled and should warn about missing props.
Packages
@refinedev/core
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
@refinedev/core
'suseMany
hook throws unhandled errors ifids
is not a valid array orresource
prop is missing. Currently only check for these values are done by types but not in runtime.Steps To Reproduce
useMany
from@refinedev/core
ids
asundefined
Expected behavior
This needs to be handled in the implementation and instead of throwing unexpected errors, query must be disabled and should warn about missing props.
Packages
@refinedev/core
Additional Context
No response
The text was updated successfully, but these errors were encountered: