Polis: Console warning on convo admin page: [un]controlled type of checkbox

Created on 12 Jun 2020  ·  1Comment  ·  Source: compdemocracy/polis

When visiting the admin page of any conversation (e.g. on https://preprod.pol.is/m/<convo id>), an error warning shows up in console:

react_devtools_backend.js:6 Warning: A component is changing an uncontrolled input of type checkbox to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components
    in input (created by ConversationConfig)
    in div (created by Context.Consumer)
    in Styled(div) (created by Context.Consumer)
    in EmotionCssPropInternal (created by ConversationConfig)
    in div (created by Context.Consumer)
    in Styled(div) (created by Context.Consumer)
    in EmotionCssPropInternal (created by ConversationConfig)
    in div (created by Context.Consumer)
    in Styled(div) (created by ConversationConfig)
    in ConversationConfig (created by ConnectFunction)
    in ConnectFunction (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in Route (created by ConversationAdminContainer)
    in Switch (created by ConversationAdminContainer)
    in div (created by Context.Consumer)
    in Styled(div) (created by Context.Consumer)
    in EmotionCssPropInternal (created by ConversationAdminContainer)
    in div (created by Context.Consumer)
    in Styled(div) (created by ConversationAdminContainer)
    in ConversationAdminContainer (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in Route (created by PrivateRoute)
    in PrivateRoute (created by App)
    in div (created by Context.Consumer)
    in Styled(div) (created by InteriorHeader)
    in div (created by Context.Consumer)
    in Styled(div) (created by InteriorHeader)
    in InteriorHeader (created by App)
    in Switch (created by App)
    in App (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in Route (created by Root)
    in Router (created by BrowserRouter)
    in BrowserRouter (created by Root)
    in Provider (created by Root)
    in MDXProvider (created by MDXProvider$1)
    in MDXProvider$1 (created by ThemeProvider$1)
    in ColorModeProvider (created by ThemeProvider$1)
    in BaseProvider (created by ThemeProvider)
    in ThemeProvider (created by ThemeProvider$1)
    in ThemeProvider$1 (created by Root)
    in Root
r @ react_devtools_backend.js:6
printWarning @ admin_bundle.js:36519
error @ admin_bundle.js:36491
updateWrapper @ admin_bundle.js:38301
updateProperties @ admin_bundle.js:42691
commitUpdate @ admin_bundle.js:43984
commitWork @ admin_bundle.js:56977
commitMutationEffects @ admin_bundle.js:59207
callCallback @ admin_bundle.js:36619
invokeGuardedCallbackDev @ admin_bundle.js:36668
invokeGuardedCallback @ admin_bundle.js:36723
commitRootImpl @ admin_bundle.js:58940
unstable_runWithPriority @ admin_bundle.js:62212
runWithPriority$1 @ admin_bundle.js:47470
commitRoot @ admin_bundle.js:58812
finishSyncRender @ admin_bundle.js:58238
performSyncWorkOnRoot @ admin_bundle.js:58224
(anonymous) @ admin_bundle.js:47520
unstable_runWithPriority @ admin_bundle.js:62212
runWithPriority$1 @ admin_bundle.js:47470
flushSyncCallbackQueueImpl @ admin_bundle.js:47515
flushSyncCallbackQueue @ admin_bundle.js:47503
batchedUpdates$1 @ admin_bundle.js:58293
notify @ admin_bundle.js:104486
notifyNestedSubs @ admin_bundle.js:104559
handleChangeWrapper @ admin_bundle.js:104564
dispatch @ admin_bundle.js:105516
(anonymous) @ admin_bundle.js:33422
dispatch @ admin_bundle.js:105862
(anonymous) @ admin_bundle.js:107311
(anonymous) @ admin_bundle.js:3781
fire @ admin_bundle.js:3602
fireWith @ admin_bundle.js:3732
done @ admin_bundle.js:9172
(anonymous) @ admin_bundle.js:9538
load (async)
send @ admin_bundle.js:9557
ajax @ admin_bundle.js:9071
jQuery.<computed> @ admin_bundle.js:9222
fetchZidMetadata @ admin_bundle.js:107289
(anonymous) @ admin_bundle.js:107310
(anonymous) @ admin_bundle.js:33422
loadZidMetadata @ admin_bundle.js:137484
componentWillMount @ admin_bundle.js:137494
callComponentWillMount @ admin_bundle.js:49380
mountClassInstance @ admin_bundle.js:49479
updateClassComponent @ admin_bundle.js:53532
beginWork @ admin_bundle.js:55051
beginWork$1 @ admin_bundle.js:59610
performUnitOfWork @ admin_bundle.js:58585
workLoopSync @ admin_bundle.js:58561
performSyncWorkOnRoot @ admin_bundle.js:58187
(anonymous) @ admin_bundle.js:47520
unstable_runWithPriority @ admin_bundle.js:62212
runWithPriority$1 @ admin_bundle.js:47470
flushSyncCallbackQueueImpl @ admin_bundle.js:47515
flushSyncCallbackQueue @ admin_bundle.js:47503
batchedUpdates$1 @ admin_bundle.js:58293
notify @ admin_bundle.js:104486
notifyNestedSubs @ admin_bundle.js:104559
handleChangeWrapper @ admin_bundle.js:104564
dispatch @ admin_bundle.js:105516
(anonymous) @ admin_bundle.js:33422
dispatch @ admin_bundle.js:105862
(anonymous) @ admin_bundle.js:106828
(anonymous) @ admin_bundle.js:3781
fire @ admin_bundle.js:3602
fireWith @ admin_bundle.js:3732
done @ admin_bundle.js:9172
(anonymous) @ admin_bundle.js:9538
load (async)
send @ admin_bundle.js:9557
ajax @ admin_bundle.js:9071
polisAjax @ admin_bundle.js:106621
polisGet @ admin_bundle.js:106651
fetchUser @ admin_bundle.js:106819
(anonymous) @ admin_bundle.js:106827
(anonymous) @ admin_bundle.js:33422
loadUserData @ admin_bundle.js:138027
componentWillMount @ admin_bundle.js:138032
callComponentWillMount @ admin_bundle.js:49380
mountClassInstance @ admin_bundle.js:49479
updateClassComponent @ admin_bundle.js:53532
beginWork @ admin_bundle.js:55051
beginWork$1 @ admin_bundle.js:59610
performUnitOfWork @ admin_bundle.js:58585
workLoopSync @ admin_bundle.js:58561
performSyncWorkOnRoot @ admin_bundle.js:58187
scheduleUpdateOnFiber @ admin_bundle.js:57619
updateContainer @ admin_bundle.js:60804
(anonymous) @ admin_bundle.js:61189
unbatchedUpdates @ admin_bundle.js:58334
legacyRenderSubtreeIntoContainer @ admin_bundle.js:61188
render @ admin_bundle.js:61271
(anonymous) @ admin_bundle.js:138377
__webpack_require__ @ admin_bundle.js:20
(anonymous) @ admin_bundle.js:34229
__webpack_require__ @ admin_bundle.js:20
(anonymous) @ admin_bundle.js:84
(anonymous) @ admin_bundle.js:87
Show 39 more frames
DevTools failed to load SourceMap: Could not load content fo
priority-★☆☆ 🐛 bug client-admin

Most helpful comment

That's a warning not an error :)

>All comments

That's a warning not an error :)

Was this page helpful?
0 / 5 - 0 ratings