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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.0.2
    • 1.0.0
    • React Renderer
    • None
    • HL & LD 2, HL & LD 3
    • 3

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

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