Skip to content

Refined useEffectOnce to solely act as an alias for React.useEffect(effect, [||]). #600

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lukaszkrzywizna
Copy link
Contributor

Resolves #595

…t(effect, [||])`, removing logic dependent on double effect invocation in `React.StrictMode` which led to bugs in `IDisposable` overloads.
@Freymaurer
Copy link
Contributor

Hello! I somewhat agree with the changes proposed here. Today, while revivifing the test suit, i noticed that the test about useEffect were failing in some cases #655. I added referenced to this PR and the relevant issue to #655 and will resolve this after updating to the jsx output as suggested by Maxime.

Are you willing to rebase the PR when the project restructure is more advanced? Otherwise i will just implement the required changes.

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.

Clarification and Potential Improvement on PR #480 useEffectOnce behavior
2 participants