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

Turbolinks 导致的渲染问题 #1

Open
ben7th opened this issue Oct 31, 2016 · 0 comments
Open

Turbolinks 导致的渲染问题 #1

ben7th opened this issue Oct 31, 2016 · 0 comments

Comments

@ben7th
Copy link
Contributor

ben7th commented Oct 31, 2016

Turbolinks.visit(path) 方法导致触发 turbolinks:before-render 事件两次

class Turbolinks.BrowserAdapter
  visitStarted: (visit) ->
    visit.issueRequest() # 第一次触发
    visit.changeHistory()
    visit.loadCachedSnapshot() # 第二次触发

其中,第二次触发导致警告

unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.
ben7th added a commit that referenced this issue Oct 31, 2016
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

No branches or pull requests

1 participant