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

fix: stale use effect #13

Merged
merged 4 commits into from
Sep 27, 2024
Merged

fix: stale use effect #13

merged 4 commits into from
Sep 27, 2024

Conversation

leMaik
Copy link
Member

@leMaik leMaik commented Sep 24, 2024

This adds proper mounting/unmounting behavior to useEffect, ie. cancels the request and stops changing any state (which would cause a warning in React). It also fixes useChangelogs not reloading when the config is changed.

Please don't squash but rebase and merge 🙏

@leMaik leMaik force-pushed the fix/stale-useEffect branch from 864b8cf to fa8fc99 Compare September 25, 2024 13:09
yarn.lock Show resolved Hide resolved
@saschb2b saschb2b changed the title Fix/stale use effect fix: stale use effect Sep 27, 2024
@saschb2b saschb2b merged commit 12a3074 into master Sep 27, 2024
2 checks passed
@saschb2b saschb2b deleted the fix/stale-useEffect branch September 27, 2024 09:16
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants