Skip to content

ngOnChanges is called even if no inputs are set #323

Closed
@antischematic

Description

@antischematic
@Component({ template: `` })
class Counter {
  ngOnChanges() {
    throw new Error("should not be called")
  }
}

await render(Counter)

Expected: nothing
Actual: Error thrown

It should only call ngOnChanges if inputs are overridden.

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