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

Components in @magnolia/react-editor does not rerender on props change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.0.2
    • 1.0.0
    • React Renderer
    • None

    Description

      All components inĀ @magnolia/react-editor are classes so they do not rerender on new props.
      Hence when new page is fetched and new content is passed to Page component id does not update.

      It blocks the SPA behaviour.

      Please make all the components a stateless ones, as we do not need them to be full blow classes, and stateless ones will fix the issue.

      Reported against react; check angular as well.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                canh.nguyen Canh Nguyen
                bstaryga Bartosz Staryga
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 2d
                      2d