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

Fixed useFetch hook bug #139

Merged
merged 1 commit into from Apr 18, 2022
Merged

Fixed useFetch hook bug #139

merged 1 commit into from Apr 18, 2022

Conversation

ghost
Copy link

@ghost ghost commented Apr 18, 2022

When I was learning how to write about useFetch, I found that when the url changes, it will become the loaded state and will no longer change.(Data will not change)
This is because when the component is updated, cancelRequest will be set true. And will not be reset to false.I think this is bug.

@juliencrn juliencrn self-requested a review April 18, 2022 19:53
Copy link
Owner

@juliencrn juliencrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @daiky218, indeed, good catch! 👍 Thanks

@juliencrn juliencrn merged commit 59ccef4 into juliencrn:master Apr 18, 2022
@ghost ghost deleted the origin/fix-useFetch-bug branch April 20, 2022 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant