React unique keys console error when adding group field wrapper
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the warning by adding a group field wrapper, then inspect the Fields render method and FieldGroup entry point named in the stack trace. Confirm the fix by rendering the grouped fields without the React unique-key console warning.
Written by the indexing model from the issue text.
Description
Reverting this back to an issue, I accidentally moved it to a GitHub discussion.
Originally posted by ARkrOSClou July 4, 2024
React unique keys console error when adding group field wrapper
Warning: Each child in a list should have a unique "key" prop.
Check the render method of `Fields`. See https://reactjs.org/link/warning-keys for more information.
at FieldGroup (webpack-internal:///../../node_modules/@keystone-6/core/dist/Fields-cb2c206c.esm.js:123:69)
at Fields (webpack-internal:///../../node_modules/@keystone-6/core/dist/Fields-cb2c206c.esm.js:45:3)
at div
at eval (webpack-internal:///../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js:60:66)
at eval (webpack-internal:///../../node_modules/@keystone-ui/core/dist/keystone-ui-core.esm.js:1082:11)
at ItemForm (webpack-internal:///../../node_modules/@keystone-6/core/___internal-do-not-…ternal-do-not-use-will-break-in-patch-admin-ui-pages-ItemPage.esm.js:114:3)
at div
at eval (webpack-internal:///../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js:60:66)
at div
at eval (webpack-internal:///../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js:60:66)
at Container (webpack-internal:///../../node_modules/@keystone-6/core/dist/common-e09bab7f.esm.js:24:3)
at eval (webpack-internal:///../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js:60:66)
at ColumnLayout (webpack-internal:///../../node_modules/@keystone-6/core/dist/common-e09bab7f.esm.js:86:66)
at main
at eval (webpack-internal:///../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js:60:66)
at Content (webpack-internal:///../../node_modules/@keystone-6/core/dist/PageContainer-c874da2e.esm.js:358:66)
at div
at eval (webpack-internal:///../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js:60:66)
at PageWrapper
at PageContainer (webpack-internal:///../../node_modules/@keystone-6/core/dist/PageContainer-c874da2e.esm.js:374:3)
at ItemPage (webpack-internal:///../../node_modules/@keystone-6/core/___internal-do-not-…ternal-do-not-use-will-break-in-patch-admin-ui-pages-ItemPage.esm.js:363:3)
at ErrorBoundary (webpack-internal:///../../node_modules/@keystone-6/core/dist/Errors-790aea8c.esm.js:20:5)
at DrawerProvider (webpack-internal:///../../node_modules/@keystone-ui/modals/dist/keystone-ui-modals.esm.js:54:5)
at ToastProvider (webpack-internal:///../../node_modules/@keystone-ui/toast/dist/keystone-ui-toast.esm.js:41:5)
at InternalKeystoneProvider (webpack-internal:///../../node_modules/@keystone-6/core/admin-ui/context/dist/keystone-6-core-admin-ui-context.esm.js:313:3)
at ApolloProvider (webpack-internal:///../../node_modules/@apollo/client/react/context/ApolloProvider.js:14:21)
at KeystoneProvider (webpack-internal:///../../node_modules/@keystone-6/core/admin-ui/context/dist/keystone-6-core-admin-ui-context.esm.js:362:14)
at Core (webpack-internal:///../../node_modules/@keystone-ui/core/dist/keystone-ui-core.esm.js:1304:5)
at eval (webpack-internal:///../../node_modules/@keystone-6/core/___internal-do-not-…-___internal-do-not-use-will-break-in-patch-admin-ui-pages-App.esm.js:84:3)
at PathnameContextProviderAdapter (webpack-internal:///../../node_modules/next/dist/shared/lib/router/adapters.js:79:11)
at ErrorBoundary (webpack-internal:///../../node_modules/next/dist/compiled/@next/react-dev-overlay/dist/client.js:2:5389)
at ReactDevOverlay (webpack-internal:///../../node_modules/next/dist/compiled/@next/react-dev-overlay/dist/client.js:2:7785)
at Container (webpack-internal:///../../node_modules/next/dist/client/index.js:78:1)
at AppContainer (webpack-internal:///../../node_modules/next/dist/client/index.js:182:11)
at Root (webpack-internal:///../../node_modules/next/dist/client/index.js:396:11)
node: v18.18
"@keystone-6/auth": "8.0.0"
"@keystone-6/core": "6.1.0"
- Dominant language
- TypeScript
- Stars
- 10k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 38
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keystonejs/keystone
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
keystonejs/keystone#10143 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
keystonejs/keystone#10141 ·
Maintainers usually reply within 1 day
-
[bug] List view search field becomes disabled when search returns no results, interrupting IME inputPossibly taken @ltxhhz claimed this 17 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
keystonejs/keystone#10097 ·
Maintainers usually reply within 1 day
-
Document Fields Demo page of docs refers to form that doesn't existMay be free again @Mthize claimed this 189 days ago, and no pull request is open. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
keystonejs/keystone#9766 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
keystonejs/keystone#10142 ·
Maintainers usually reply within 1 day
All issues in keystonejs/keystone
Similar issues
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPossibly taken @BitPluto claimed this today. Openneeds-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Dokploy/dokploy#6203 · 1 comment ·
Maintainers usually reply within 1 day
-
area/webapp comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#163341 · 2 comments ·
Maintainers usually reply within 1 day