Hi, guys
And how now I can use redux store in my app?! I need redux store in my app, but
<ApolloProvider client={client} store={store}>
...
</ApolloProvider>
not working now. And what I have to do?!
Hi, guys
And how now I can use redux store in my app?! I need redux store in my app, but
<ApolloProvider client={client} store={store}>
...
</ApolloProvider>
not working now. And what I have to do?!
You seem to be doing things correctly, but I don’t see enough of the code to completely confirm. Double check this: http://dev.apollodata.com/react/redux.html
But it was correct for v. 1.x…
And information from this site is outdated…
Solved by this one:
import { Provider } from 'react-redux'
<ApolloProvider client={client}>
<Provider store={store}>
...
</Provider>
</ApolloProvider>
Ugly, but it works