You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing directive using createDirectiveFactory and providing custom host component it's ngOnChanges hook is not called neither during component initialization, not after updating its inputs via setHostInput method.
It worked as expected in v14, v15 and v16 and became broken starting from v17.
I've created a reproduction repo and added a single unit test there, so just run npm run test to see the issue.
Please provide a link to a minimal reproduction of the bug
Is this a regression?
Yes
Description
When testing directive using
createDirectiveFactory
and providing custom host component it'sngOnChanges
hook is not called neither during component initialization, not after updating its inputs viasetHostInput
method.It worked as expected in v14, v15 and v16 and became broken starting from v17.
I've created a reproduction repo and added a single unit test there, so just run
npm run test
to see the issue.Please provide a link to a minimal reproduction of the bug
https://github.com/th0r/ngneat-spectator-onchanges-bug
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
Anything else?
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: