You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
connectToMessageContainer.js:100 Uncaught TypeError: Cannot read property 'allMessages' of null
at MessageListener.<anonymous> (connectToMessageContainer.js:100)
at getStateFromUpdate (react-dom.development.js:7149)
at beginUpdateQueue (react-dom.development.js:7198)
at updateClassInstance (react-dom.development.js:9982)
at updateClassComponent (react-dom.development.js:10224)
at beginWork (react-dom.development.js:10605)
at performUnitOfWork (react-dom.development.js:12573)
at workLoop (react-dom.development.js:12682)
at HTMLUnknownElement.callCallback (react-dom.development.js:1299)
at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)
react-dom.development.js:8305 The above error occurred in the <MessageListener> component:
in MessageListener (created by Submit)
The text was updated successfully, but these errors were encountered:
Sorry, thought this was inside react formal, but it's my Submit component. Still related to Form.Trigger.
Usage may help then?
// @flowimportFormfrom'@alienfast/react-formal'importReactfrom'react'importButtonfrom'../Button'importLoggerfrom'../util/Logger'importtype{Node}from'react'/** * private - we simply need to pass this in for submit */constRaisedButton=(props: {errors?: Object,children?: Node})=>{const{ children, ...rest}=propsreturn(<Buttonraised{...rest}>{children}</Button>)}typeProps={raised?: boolean,disabled?: boolean,children?: Node}constSubmit=(props: Props)=>{const{raised,disabled,children,
...rest}=propsreturn(// $FlowFixMe<Form.Triggergroup='@all'>{({ messages })=>{consterrors=!!Object.keys(messages).length// disable when marked as such or errorsletstylePropsif(disabled||errors){styleProps={disabled: true}}log.debug('render',styleProps,errors||disabled,props)return(// $FlowFixMe<Form.Buttontype='submit'{...rest}{...styleProps}component={raised ? RaisedButton : Button}>{children}</Form.Button>)}}</Form.Trigger>)}constlog=Logger.get('Submit')exportdefaultSubmit
The text was updated successfully, but these errors were encountered: