react-ketting
react-ketting copied to clipboard
UseCollection Error-is not changed
Hi.
The situation:
const resourceParam = useCollection<T>(url, options);
I have code which changes the url, and there are situations when server responds with 400 - Bad request
The problem:
after url becames correct the resourceParam.error is still exists
The possible solution:
May be is possible to add reset an Error in src/hooks/use-read-resource.ts
Makes sense!