Skip to content

Warning about moving code from componentWillMount to componentDidMount #28

@rostamia

Description

@rostamia

Seem to be getting this message when using react-jotform-embed v1.1.3 with react v18.2.0

  • Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.

Please update the following components: JotformEmbed
at JotformEmbed (\react-jotform-embed\lib\cjs\react-jotform-embed.js:84:5)
at div
at \react-bootstrap\cjs\Col.js:72:8
at div
at \react-bootstrap\cjs\Row.js:22:3
at div
at \react-bootstrap\cjs\Container.js:24:3
at section
at Contact
at main
at div
at SSRProvider (@react-aria\ssr\dist\main.js:33:13)
at Layout (webpack-internal:///./src/components/Layout.js:31:32)
at App (webpack-internal:///./src/pages/_app.js:33:16)
at StyleRegistry (\styled-jsx\dist\stylesheet-registry.js:231:34)
at AppContainer (\next\dist\server\render.js:390:29)
at AppContainerWithIsomorphicFiberStructure (\next\dist\server\render.js:420:57)
at div
at Body (\next\dist\server\render.js:688:21)

More info about componentWillMount at https://sentry.io/answers/componentWillMount-has-been-renamed/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions