Skip to content

Investigate when a context from another library causes us to opt out of perf optimizations #366

Closed
@gaearon

Description

@gaearon

Related to #99 and the follow-up issues and pull requests.
I’d like to understand better in which cases we have the behavior described in #365 (comment):

I dug into why this happens, and it seems like returning a cached element in render() is not enough to prevent a re-render in some cases when there is an additional context between <Provider> and the connect()ed component because of this check in ReactReconciler.

Is just having another component providing context enough to trigger this? Is there any way we can work around this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions