The signalStore function could return two functions, one for provide and one for inject. #4188
-
Which @ngrx/* package(s) are relevant/related to the feature request?signals InformationIt would be convenient if the Describe any alternatives/workarounds you're currently usingNo response I would be willing to submit a PR to fix this issue
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The idea with The injection token's limitation is that it cannot be provided via the By the way, I opened an issue for this some time ago: angular/angular#49807
Can you provide more details on why the As I mentioned, we started with this approach but changed it for two main reasons:
|
Beta Was this translation helpful? Give feedback.
The idea with
[provide, inject]tuple is from initial SignalStore proposal.The injection token's limitation is that it cannot be provided via the
providersarray withoutuseFactory. That's the reason why theprovide..function is necessary for tokens. On the other hand, this is not needed for services (classes).By the way, I opened an issue for this some time ago: angular/angular#49807