-
Notifications
You must be signed in to change notification settings - Fork 62
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
Combination with "fetchData" idea from Apollo GraphQL #13
Comments
Hey @swernerx I can look at building an Apollo integration layer. It won't work out of the box at the moment no. :( I plan on doing an integration between this and I'll keep you posted if and when I make progress. |
Thanks! Alternatively it would help to have some simple babel plugin which removes We don't need code splitting on server, right? |
Interestingly |
Okay my previous statement was wrong. It works. Just make sure to use |
BTW: The current (new) approach of Apollo's logic to fetch data on the server has been changed. They now call handle each component in the tree so that |
@swernerx were you able to get |
@navgarcha You might want to have a look at edgestack - my current Apollo ready development stack. It includes a different async component solution which also supports locales and it works well with Apollo, yes. Needs more fine tuning and stabilization though I figure. |
@swernerx perhaps i've misunderstood what you were trying todo - i can't see any use of |
FYI I am in the middle of a rewrite that will be able to provide a compat layer with react Apollo. Only requiring a single tree walk to resolve the AsyncComponents and Apollo data.🤘 |
@ctrlplusb awesome - is this in the |
It will be soon 😀 |
I was wondering how to combine this lazy loading with "fetchData()" static methods used by Apollo for prefetching data server-side during SSR. This is implemented in
getDataFromTree
(see: http://dev.apollodata.com/react/server-side-rendering.html#getDataFromTree)I see you have a custom solution for loading data which might not work for us, as we need Apollo support. Currently it seems like Apollo's logic is not waiting for the chunks which actually needs the relevant data.
Maybe you can share a hint in the docs.
The text was updated successfully, but these errors were encountered: