Skip to content

Is it correct to apply @ObservableState to model objects? #2879

Answered by mbrandonw
gerfarfel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gerfarfel, observation is only as granular as @ObservableState is applied, and so if you truly need to be super granular with observation then you can apply the macro to a domain type that is not just a reducer state. However, I would start with only applying it to reducer states first and only consider adding it to domain types if the over-observation is truly a problem.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gerfarfel
Comment options

@mbrandonw
Comment options

@gerfarfel
Comment options

Answer selected by gerfarfel
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