UseCollection Error-is not changed
mzubzzz opened this issue · 1 comments
mzubzzz commented
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
evert commented
Makes sense!