Skip to content

NgComponent prevents react from rerendering when it should #93

@everdimension

Description

@everdimension

This is an issue to describe in a little bit more detail the problem described here: #88

The problem is the following:

If an object is mutated in angular, angular rerenders its views. But react2angular library uses ngcomponent lib under the hood, which prevents react from receiving updates (by making a shallow comparison of the old and new values).

As I understand, this line is the problem: https://github.com/coatue-oss/ngcomponent/blob/master/index.ts#L42


I created a demo to reproduce the bug: https://everdimension.github.io/reproduction-repo-react2angular/

Here's the code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions