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

Explicit prop passing in React components

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved:

                Version Package