react-ketting icon indicating copy to clipboard operation
react-ketting copied to clipboard

UseCollection Error-is not changed

Open mzubzzz opened this issue 2 years ago • 1 comments

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

mzubzzz avatar Feb 28 '23 08:02 mzubzzz

Makes sense!

evert avatar Feb 28 '23 17:02 evert