[MGNLFE-141] React SSR Warning: UNSAFE_componentWillUpdate in strict mode Created: 01/Nov/21  Updated: 16/Nov/21  Resolved: 16/Nov/21

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: 1.1.2
Fix Version/s: 1.2.0

Type: Bug Priority: Medium
Reporter: Christopher Zimmermann Assignee: Canh Nguyen
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
supersession
is superseded by MGNLFE-131 Broken preview. Support navigation to... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: External SPA
Sprint: HL & LD 41
Story Points: 2

 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?


Generated at Mon Feb 12 05:44:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.