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

Landing page code being called twice #3

Open
mgable opened this issue May 2, 2018 · 0 comments
Open

Landing page code being called twice #3

mgable opened this issue May 2, 2018 · 0 comments

Comments

@mgable
Copy link

mgable commented May 2, 2018

I have downloaded and installed your app and it works great, except the Landing page code is called twice, causing anything on the landing page to be called twice as well.

It appears the sagaMiddleware.run(sagas) causes the second rendering. Which makes sense as the page is first rendered, then when the async code is completed it runs again. I was hoping to write code like this to avoid the second rendering:
`let task = sagaMiddleware.run(sagas)

injectTapEventPlugin()

task.done.then(() => {
ReactDOM.render(




,
document.getElementById('root')
)
});`

Unfortunately the task promise never resolves. Do you know what the issue might be?

Thanks.

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