reading required signal input from effect causes error NG0950 when done inside structural directive creating an embedded view after promise resolves #55311
Labels
area: core
Issues related to the framework runtime
bug
core: reactivity
Work related to fine-grained reactivity in the core framework
cross-cutting: signals
P1
Impacts a large percentage of users; if a workaround exists it is partial or overly painful
Milestone
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
When using a directive which defines an effect reading a required signal input from inside an ng-container using a structural directive which renders its view after a promise resolves, an error NG0950 (Input is required but no value is available yet) is thrown.
The same code works fine when used outside of the container with the structural directive.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-nk7kmy?file=src%2Fbug.directive.ts,src%2Ffoo.directive.ts,src%2Fmain.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: