Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-206

Explicit prop passing in React components

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      With the Layout and EditorContainer components, props are automatically injected into child components. This may lead to confusion to new devs and also has some performance drawbacks with client-side rendered components. The props are being injected during runtime so there is a mismatch between props on the server side rendered React markup and the controller rendered client side which causes React to perform an additional rerender on the client.

      Solution: Make explicit prop declarations.

        Attachments

          Activity

            People

            • Assignee:
              Arthelon Daniel Hsing
              Reporter:
              Arthelon Daniel Hsing
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package