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

Load empty block by server side rendering #87

Open
ipostol opened this issue Jun 12, 2016 · 1 comment
Open

Load empty block by server side rendering #87

ipostol opened this issue Jun 12, 2016 · 1 comment

Comments

@ipostol
Copy link

ipostol commented Jun 12, 2016

Hello, I have some little problem, when a i am haven`t any async-connections on some route, by server-side rendering like a this:

      loadOnServer({...renderProps, store, helpers: {client}}).then(() => {

        const component = (
          <Provider store={store} key="provider">
            <ReduxAsyncConnect {...renderProps} />
          </Provider>
        );

        console.log(ReactDOM.renderToString(component), '?????');

I have output by empty string

If am create fake async-connect with

promise() {
  return Promise.all([])
}

all be correct.

I now this not a big problem and have easy solution with async-connect on frame element. But if u not need async-connect for some router and frame element - little trouble is coming.

P.S.
Thank you for this project, he resolve many questions =)

@yury-sannikov
Copy link

Hi @ipostol,
I had the same issue. Should be fixed by this: #88

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

2 participants