Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

added if statement in onRemove() function#555

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
itsmichaeldiego merged 1 commit intogoogle-map-react:masterfromatkallie:master
Apr 17, 2018

Conversation

atkallie
Copy link
Contributor

Added an if statement inonRemove() function that checks ifthis.div is defined before callingReactDOM.unmountComponentAtNode(this.div). This is done to avoid throwing anunmountComponentAtNode(...): Target container is not a DOM element error. I ran into this error while using google-map-react with React Router and switching between tabs rapidly to stress test my application.

Added an if statement in onRemove() function that checks if "this.div" is defined before calling ReactDOM.unmountComponentAtNode(this.div). This is done to avoid throwing an "unmountComponentAtNode(...): Target container is not a DOM element" error. I ran into this error while using google-map-react with React Router and switching between tabs rapidly to stress test my application.
@itsmichaeldiego
Copy link
Member

@atkallie Thanks, defensive programming is always a plus.

atkallie reacted with thumbs up emoji

@itsmichaeldiegoitsmichaeldiego merged commit147997c intogoogle-map-react:masterApr 17, 2018
@lock
Copy link

lockbot commentedDec 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@locklockbot locked asresolvedand limited conversation to collaboratorsDec 1, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@itsmichaeldiegoitsmichaeldiegoitsmichaeldiego approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@atkallie@itsmichaeldiego

[8]ページ先頭

©2009-2025 Movatter.jp