Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Add test to verify error is persisted on re-render, when appropriate #3362

Merged
merged 2 commits into from Aug 13, 2019

Conversation

hwillson
Copy link
Member

Issue #3295 demonstrates a problem where errors aren't maintained on re-renders, when they should still be available. This issue was fixed by PR #3339, but this commit will add an extra test to verify that the issue is indeed fixed.

Fixes #3295.

Issue #3295 demonstrates a problem where errors aren't maintained
on re-renders, when they should still be available. This issue
was fixed by PR #3339, but this commit will add an extra test to
verify that the issue is indeed fixed.

Fixes #3295.
@hwillson hwillson merged commit 3e0a436 into master Aug 13, 2019
@hwillson hwillson deleted the issue-3295 branch August 13, 2019 20:31
@dylanwulf
Copy link
Contributor

I am still experiencing this issue when I have either onCompleted or onError specified in the query options. I tried adding onError to the query options in this test, and now it fails: dylanwulf@f01d714

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useQuery's error object disappears on rerender
2 participants