rsnext/examples/with-apollo/components
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
..
App.js Update Examples for Fast Refresh (#13068) 2020-05-18 17:44:18 -04:00
ErrorMessage.js Update Examples for Fast Refresh (#13068) 2020-05-18 17:44:18 -04:00
Header.js [Examples] Move with-apollo to SSG (#13742) 2020-06-05 15:41:42 +00:00
InfoBox.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
PostList.js Replace Graphcool with dedicated example GraphQL server using Prisma (#15752) 2020-08-05 06:26:54 +00:00
PostUpvoter.js Replace Graphcool with dedicated example GraphQL server using Prisma (#15752) 2020-08-05 06:26:54 +00:00
Submit.js Fix with-apollo example (#17686) 2020-10-08 03:45:28 +00:00