Skip to content

Output isn't always based on nesting order #19

@oztune

Description

@oztune

I noticed that the documentation here and over at Helmet seems to imply that props get merged based on nesting order, but that's not always the case. It's based on mounting order, which doesn't always === nesting order.

During the lifetime of the app any component can be mounted at any point in the tree, but it gets treated as if it's the innermost component regardless. This is a problem in react-document-title for example since it assumes that the last component in the list is the inner-most one (https://github.com/gaearon/react-document-title/blob/master/index.js#L7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions