Closed TobbiAR closed 1 year ago
@NetanelBasal I looked and this does not work in the app despite working in the tests. Angular doesn't allow us to use a function that returns a Type
for hostDirectives
. If this feature is needed we could use the next syntax
@Component({
...
providers: [provideDirectiveEffects(TodoEffects)],
hostDirectives: [EffectsDirective],
})
I don't think we can do much here.
You can start with the change. I will take a closer look asap.
Which @ngneat/effects-* package(s) are the source of the bug?
effects-ng
Is this a regression?
Yes
Description
When using the
useDirectiveEffects
function of@ngneat/effects-ng
with angular 15 of, I get the following error:Please provide a link to a minimal reproduction of the bug
https://github.com/TobbiAR/effects-ng-directive-issue
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
Anything else?
No response
Do you want to create a pull request?
No