-
-
Notifications
You must be signed in to change notification settings - Fork 204
feat(state): allow to pass injector to rxState and rxEffects #1840
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
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution β for commit b2d2be5.
βοΈ Nx Cloud last updated this comment at |
I did not add any test cases so far.
|
@edbzn Let me know what you think. A few words here from my side:
Depending on the outcome of this discussion here I'll continue to add tests for |
@michaelbe812 I think we need to test only two things here:
Instead of creating a new file and mocking |
Sounds good! Thank you for giving me another perspective. Will look into the snippet you provided and update the test cases. Will let you know once I'm done |
5a0bf28
to
e2fcc4b
Compare
@edbzn just updated the test cases following your recommendation. Let me know if it meets your expectations or some polishing is needed. |
@edbzn |
@michaelbe812 I would love to see some docs about this? Just adding a section to the rx state docs would be fair enough |
e2fcc4b
to
b2d2be5
Compare
Oh how could i miss that! π Done! :) |
@edbzn |
This PR will add the possibility to pass a
Injector
torxState
andrxEffects
to make it easier to instantiate them outside of an injection context.Right now users need to do: