Skip to content

Landing page code being called twice #3

@mgable

Description

@mgable

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions