New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use Singleton Lifetype option with middleware #440
Comments
I was also thinking of asking a similar question. If I want all clients globally to be able to subscribe to state changes in real-time, due to the current default DI (Dependency Injection) lifetime being Scoped, only within the same page can one subscribe to the state. Even between two pages, subscription cannot be achieved, which is clearly not reasonable refer to #295 |
It seems that the project at https://github.com/servicetitan/Stl.Fusion might solve the global state change subscription issue. You might want to look into it |
@Kukks Sorry for the late reply, life got in the way! Can you give me a repro for this? I am not seeing it. |
When attempting to use the singleton lifetime option alongside default middleware such as routing and redux, the DI critically fails as they have scoped dependencies.
The text was updated successfully, but these errors were encountered: