Skip to content

Docs: provide examples regarding stateful encapsulation and "Good Action Hygiene" #3090

Answered by damienwebdev
damienwebdev asked this question in Q&A
Discussion options

You must be logged in to vote

As this got bumped, I figured I would revitalize this conversation with some additional learnings and commentary on how we've addressed this in Daffodil(the original reason for this question).

Of interest to those curious about solving this problem may be this PR (which references a .drawio file, but I'll add a picture to the PR as well).

In short, there's a documentation weakness that I see in @ngrx/store today: using dependency injected reducers.

To clarify, the sidebar problem can be fixed by:

  1. Exposing a few "helper" functions from your custom package's state API (much like entity adapter does)
  2. Allowing other packages to process their own actions, and as a result, modify the existing …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by damienwebdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant
Converted from issue

This discussion was converted from issue #1734 on July 21, 2021 02:21.