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

how would this look like in a NUXT project #1

Open
dohomi opened this issue Jun 15, 2017 · 4 comments
Open

how would this look like in a NUXT project #1

dohomi opened this issue Jun 15, 2017 · 4 comments
Labels

Comments

@dohomi
Copy link

dohomi commented Jun 15, 2017

Hi @PierBover

I'm very interested in this example. Do you have an idea how to set this up in NUXT as well? I am facing the problem that I don't have the correct initial state on client-server hydration.

Thanks!

@PierBover
Copy link
Owner

I have never used Nuxt, but from this example it seems there would be absolutely no difference.

You'd initialise Apollo Client somewhere, then import it in your store, then create actions that use Apollo client to query, mutate, subscribe, and unsubscribe.

@dohomi
Copy link
Author

dohomi commented Jun 15, 2017

Yes, maybe if I'd use it in the fetch() method on NUXT I could try to avoid this issue. Otherwise I need a way how to set the initialStateinside of the apollo-client on client side

@PierBover
Copy link
Owner

Can you show me an example project?

@dohomi
Copy link
Author

dohomi commented Jun 15, 2017

@PierBover currently my project is on hold due to the fact that in NUXT the alpha branch is not documented yet and there are many changes. I will work on this as soon a changelog of 0.x => 1.x exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants