Skip to content

Why identical? instead of = for value comparisons? #43

@sparkofreason

Description

@sparkofreason

I've run into times when an rx expression is updated even though it's value (and the value of it's dependencies) are the same, resulting in brief flashes because the corresponding piece of DOM re-renders. Looking at the code, I'm guessing this is because identical? is used instead of = when determining whether to notify watches. Is there a reason for this? If it's for performance, could it be made configurable?

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