“Invalid provider” when trying to inject InjectionToken in NGXS state class
I am trying to inject an InjectionToken in an NGXS State class. However no matter what I try the state class fails to initialize and Angular throws an Error: Invalid provider
error.
When will the next NGXS version be released with angular 18 support?
I have seen that the support for Angular 18 is already merged in the NgXs changelog.
Set protocol asynchronously in NGXS WebSocket Plugin
I’m trying to set the protocol for a WebSocket configuration, but I want to do this after receiving an access token from an API. Specifically, I want to pass the token as a header in the Sec-WebSocket-Protocol. However, I haven’t been able to set the protocol in any way except by putting it in NgxsWebsocketPluginModule.forRoot().