Skip to content
Discussion options

You must be logged in to vote

Hi @danielavrammindera, you just have to use @ObsevationStateIgnored on the property, just as you would with @Observable.

However, I'm not sure it is a good idea to use @Dependency in your state because that means the state can't be Equatable and so you can't write tests for the feature. Further, any access of a @Dependency outside of the reducer will not pick up any dependency overrides that are made using the .dependency reducer modifier.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@danielavrammindera
Comment options

Answer selected by danielavrammindera
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants