Skip to content

isValidating is still true on error #1395

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

Closed
hazae41 opened this issue Aug 28, 2021 · 0 comments · Fixed by #1396
Closed

isValidating is still true on error #1395

hazae41 opened this issue Aug 28, 2021 · 0 comments · Fixed by #1396
Labels
bug Something isn't working

Comments

@hazae41
Copy link

hazae41 commented Aug 28, 2021

Bug report

Description / Observed Behavior

isValidating is still true even if the request failed

Capture

Expected Behavior

I expect isValidating to be false if the request ended, even if it failed

Repro Steps / Code Example

const res = useSWR("/api/hello", 
() => { throw new Error() })

console.log(res)

Additional Context

[email protected]

@shuding shuding added the bug Something isn't working label Aug 28, 2021
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

Successfully merging a pull request may close this issue.

2 participants