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: standalone build #32

Merged
merged 1 commit into from
Mar 26, 2019
Merged

fix: standalone build #32

merged 1 commit into from
Mar 26, 2019

Conversation

xiaoyuhen
Copy link
Contributor

fix: standalone build

@codecov-io
Copy link

codecov-io commented Mar 26, 2019

Codecov Report

Merging #32 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   53.32%   53.32%           
=======================================
  Files         123      123           
  Lines        1652     1652           
=======================================
  Hits          881      881           
  Misses        771      771

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cddf8a3...6083c19. Read the comment docs.

@xiaoyuhen xiaoyuhen merged commit 359af25 into master Mar 26, 2019
@xiaoyuhen xiaoyuhen deleted the standalone branch March 26, 2019 07:48
},

dispose() {
ReactDOM.unmountComponentAtNode(target)
Copy link
Collaborator

Choose a reason for hiding this comment

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

unmountComponentAtNode 是必须的,不然注册的定时器/事件之类的不能被清理(didMount/willUnmount 清理)。之前有提过这个。render 也重复了。

xiaoyuhen added a commit that referenced this pull request Mar 26, 2019
xiaoyuhen added a commit that referenced this pull request Mar 26, 2019
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.

3 participants