Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add isMounted ref to suppress async state setter functions #50

Merged
merged 3 commits into from
Nov 24, 2020

Conversation

curt-tophatter
Copy link
Contributor

@joshwcomeau I think this is what you were getting at. I'm having a hell of a time trying to test this locally though, due the following error:

Screen Shot 2020-11-21 at 1 41 45 PM

Fixes #14

@@ -1753,7 +1753,7 @@
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.5.tgz#527d20ef68571a4af02ed74350164e7a67544860"
integrity sha512-wLD/Aq2VggCJXSjxEwrMafIP51Z+13H78nXIX0ABEuIGhmB5sNGbR113MOKo+yfw+RDo1ZU3DM6yfnnRF/+ouw==

"@types/howler@^2.1.2":
"@types/howler@2.1.2":
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just came from running a yarn install fwiw

@@ -0,0 +1 @@
13.12
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to upgrade my node version to get yarn install to pass as per nodejs/node#32852 (comment)

Copy link
Owner

@joshwcomeau joshwcomeau left a comment

Choose a reason for hiding this comment

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

This looks good to me! After it's merged I'll give it a quick local test, and if everything looks good it'll be published as a patch.

Thanks!

@joshwcomeau joshwcomeau merged commit b84c591 into joshwcomeau:master Nov 24, 2020
@curt-tophatter
Copy link
Contributor Author

🙌

@joshwcomeau
Copy link
Owner

Looks good! Published under 2.0.1.

RE: The hooks warning in your screenshot, I'm guessing that's the really-annoying issue with Yarn/NPM link. I've dealt with that in the past, but I forget how 😬 I think by linking React/ReactDOM as well? I test this project exclusively in the contained storybook.

Thanks again =)

@curt-tophatter
Copy link
Contributor Author

Can't thank you enough for your time merging and publishing this!

@ghost
Copy link

ghost commented Dec 4, 2020

It is still there, isn't it?
See my comment and code here:
#42 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants