Closed anschm closed 1 year ago
This is not an issue of this library, see https://github.com/ngneat/until-destroy/issues/218
Your code is also not correct actually, the forwardRef should not be used in the function, but outside when calling this function. It fails because thereās a change in the TS compiler for decorators. If you ācaptureā the reference through forwardRef when calling the function it should work.
I wrote a method subformComponentProviders which generates the providers for the value accessor pattern. The method is implemented like:
After migrating to angular 15.1.1 and the newest until-destroy version in my case the component parameter from the method subformComponentProviders is undefined if I put @UntilDestroy() on my component. Its used like:
If I delete @UntilDestroy() the subformComponentProviders gets the component.