Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7233

Fix the createRoot() within the p4/side-image-with-text-and-cta

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Should have Should have
    • None
    • 5
    • Block Patterns

      On your local, if you create a new page and add only a p4/side-image-with-text-and-cta you'll get the next error:

      Warning: You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.
      

      And if you export the same page on production you'll get:

      Uncaught Error: Minified React error #418; visit https://reactjs.org/docs/error-decoder.html?invariant=418 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
      

      Looking at the React documentation

      "Hydration failed because the initial UI does not match what was rendered on the server."

            Unassigned Unassigned
            dtovbein Dan Tovbein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: