No description
Find a file
Henrik Wenz a79bcfb73a
Fix with-apollo example (#17686)
# Issue

The cache updates are performed in a wrong way, resulting in a duplicate collection:

**Error:**

```log
webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:88 Warning: Encountered two children with the same key, `6f3f7265-0d97-4708-a3ea-7dee76dc0a0a`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
```

**Video:**

![broken](https://user-images.githubusercontent.com/1265681/95336501-0c170180-08b1-11eb-9273-6ac9e37ceb41.gif)

# Fix

**Video:**

![fixed](https://user-images.githubusercontent.com/1265681/95336538-15a06980-08b1-11eb-8d5e-6acc07e16138.gif)
2020-10-08 03:45:28 +00:00
.github Update workflow step to restore cache (#17656) 2020-10-07 09:55:09 -05:00
.vscode skip node internals (#13345) 2020-05-25 16:21:06 +02:00
bench Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
docs change anonymous functions to named in docs examples (#17510) 2020-10-05 21:16:47 +00:00
errors Add warning when exporting with custom routes (#17538) 2020-10-05 07:11:06 +00:00
examples Fix with-apollo example (#17686) 2020-10-08 03:45:28 +00:00
packages Add initial changes for i18n support (#17370) 2020-10-07 21:11:01 +00:00
test Add initial changes for i18n support (#17370) 2020-10-07 21:11:01 +00:00
.eslintignore Expose dotenv loading under separate package (#17152) 2020-09-25 13:14:28 -05:00
.eslintrc.json Remove unused variable (#13716) 2020-06-03 11:58:58 -04:00
.gitignore ci: add pnp test (#16255) 2020-08-17 13:39:57 -04:00
.npmrc Remove version prefix 2018-10-02 01:35:56 +02:00
.prettierignore Expose dotenv loading under separate package (#17152) 2020-09-25 13:14:28 -05:00
.prettierignore_staged Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
.prettierrc.json Prettier trailingComma default value to es5 since 2.0 (#14391) 2020-06-22 13:25:24 +02:00
azure-pipelines.yml Update to track test timings separate for Azure and Actions (#12083) 2020-04-21 16:11:04 -04:00
check-examples.sh Ensure all examples are MIT licensed (#16691) 2020-08-29 22:32:35 -04:00
check-pre-compiled.sh Pre-ncc compiled packages to prevent re-nccing unnecessarily (#11569) 2020-04-07 09:42:16 -04:00
CODE_OF_CONDUCT.md Update Code of Conduct email address (#12108) 2020-04-22 16:27:24 +02:00
contributing.md Simplify example usage instructions (#16678) 2020-08-29 22:22:02 -04:00
jest.config.js Use the jest-circus test runner (#12974) 2020-05-16 16:56:06 -04:00
lerna.json v9.5.4 2020-10-07 13:56:56 -05:00
license.md Update year on license files 2020-04-21 12:24:08 +02:00
lint-staged.config.js Update browserslist/caniuse-lite (#13605) 2020-05-31 19:37:01 +00:00
package.json Include all files in Prettier (#17050) 2020-09-14 02:53:19 +00:00
publish-release.sh Make sure to exit publish script with correct code (#10310) 2020-01-28 14:03:32 -05:00
readme.md Monorepo (#5341) 2018-10-01 01:02:10 +02:00
release-stats.sh Update release stats workflow (#17580) 2020-10-05 09:32:12 +00:00
release.js Remove common PR title prefixes 2020-08-07 09:34:50 +02:00
run-tests.js Stabilize more tests (#15470) 2020-07-26 04:57:06 +00:00
SECURITY.md Create SECURITY.md 2020-07-13 19:25:08 +02:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00
UPGRADING.md Move upgrading guide to /docs (#10727) 2020-02-28 23:46:18 +01:00
yarn.lock Add initial changes for i18n support (#17370) 2020-10-07 21:11:01 +00:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Contributing

Please see our contributing.md.

Authors