Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseCollection Error-is not changed #105

Open
mzubzzz opened this issue Feb 28, 2023 · 1 comment
Open

UseCollection Error-is not changed #105

mzubzzz opened this issue Feb 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mzubzzz
Copy link

mzubzzz commented Feb 28, 2023

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 evert added the bug Something isn't working label Feb 28, 2023
@evert
Copy link
Contributor

evert commented Feb 28, 2023

Makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants