Closed 9von10 closed 2 years ago
lodash can be removed for immutable change detection. But need to validate how change detection works on mutable objects.
Referencing the same mutable object does not trigger change detection but using an immutable object does. If you need to trigger change detection rerendering use the spread operator:
this.cytoscapeOptions = { ...this.cytoscacytoscapeOptions };
Validate if lodash is really needed for proper change detection in OnChanges lifecycle hook.
See: https://angular.io/api/core/OnChanges