Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-141

React SSR Warning: UNSAFE_componentWillUpdate in strict mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Medium
    • 1.2.0
    • 1.1.2
    • None
    • None

    Description

      Steps to reproduce

      1.  Run a nextjs project - for example the nextjs-ssr-minimal project on the nextjs branch of this demo project: https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/browse?at=refs%2Fheads%2Fnextjs
      2.  Look in browser console

      .. Logs, screenshots, gifs...

      Expected results

      No warnings.

      Actual results

      Warnings in browser console when page loads:

      Warning: Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. 
      See https://reactjs.org/link/unsafe-component-lifecycles for details.
      * Move data fetching code or side effects to componentDidUpdate.
      
      Please update the following components: EditablePage
      

      Workaround

      unknown

      Development notes

      This might only be visible on nextjs project because it is running in "strict" mode by default?

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                canh.nguyen Canh Nguyen
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD