rsnext/examples/with-apollo-and-redux
Matthew Lilley 8e9e9494dd
Fix issues with apollo cache data merging and restoration (#17681)
This PR fixes issues in two apollo examples where cached queries are lost, and cached data is merged incorrectly.
2020-11-05 18:24:39 +00:00
..
components Update examples/with-apollo (#15178) 2020-07-15 18:23:22 +00:00
lib Fix issues with apollo cache data merging and restoration (#17681) 2020-11-05 18:24:39 +00:00
pages Update revalidate examples for 9.5 (#15551) 2020-07-28 01:25:50 -04:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
package.json Fix issues with apollo cache data merging and restoration (#17681) 2020-11-05 18:24:39 +00:00
README.md Simplify example usage instructions (#16678) 2020-08-29 22:22:02 -04:00

Apollo & Redux Example

This example serves as a conduit if you were using Apollo 1.X with Redux, and are migrating to Apollo 3.x, however, you have chosen not to manage your entire application state within Apollo (apollo-link-state).

In 3.0.0, Apollo serves out-of-the-box support for redux in favor of Apollo's state management. This example aims to be an amalgamation of the with-apollo and with-redux examples.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-apollo-and-redux with-apollo-and-redux-app
# or
yarn create next-app --example with-apollo-and-redux with-apollo-and-redux-app

Deploy it to the cloud with Vercel (Documentation).