Describe the bug
When overriding a stock component in a theme, the changes hook is never called. The instance variable compRef is used in src/app/shared/theme-support/themed-component.ts:ngOnChanges but that variable is not set until ngInit runs, and that happens after the first call to ngOnChanges.
I note that none of the stock themeable components implements onChanges so this issue has not caused a problem until now, when I want to make section-upload-file.component.ts themeable.
To Reproduce
Steps to reproduce the behavior:
- Write a themed replacement component that depends on change notification.
- Notice that no changes notifications are received.
Expected behavior
All component lifecycle hooks should function in themes.
Describe the bug
When overriding a stock component in a theme, the changes hook is never called. The instance variable
compRefis used insrc/app/shared/theme-support/themed-component.ts:ngOnChangesbut that variable is not set untilngInitruns, and that happens after the first call tongOnChanges.I note that none of the stock themeable components implements
onChangesso this issue has not caused a problem until now, when I want to makesection-upload-file.component.tsthemeable.To Reproduce
Steps to reproduce the behavior:
Expected behavior
All component lifecycle hooks should function in themes.