brocoders / redux-async-connect

It allows you to request async data, store them in redux state and connect them to your react component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loadOnServer is not in sync with AsyncConnect

Dindaleon opened this issue · comments

I have a universal app where I need to log in a user when the app is loaded server side.

On server load, the connector AsyncConnect is being called on server load; however, it is being called after the function loadOnServer What can I do so that the AsyncConnect is already called in sync with loadOnServer? So that the store is ready when the app loads.

Are you naming the component in the route?