From cc67597fc2f7c73740276ee567fc6028a3891de4 Mon Sep 17 00:00:00 2001 From: Bryan Stearns Date: Wed, 23 Oct 2019 08:53:26 -0700 Subject: [PATCH] start state-management documentation --- doc/state-management.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/state-management.md diff --git a/doc/state-management.md b/doc/state-management.md new file mode 100644 index 00000000..3a8e6057 --- /dev/null +++ b/doc/state-management.md @@ -0,0 +1,17 @@ +- State management choices in React, & IR's experience + - local state + - Redux + - MST + +- Mobx overview +- MST overview + - where you should use `observer` (I don't think we need to cover `inject` anymore) +- MST in Bowser + - Our `useStores` context helper + +- Tips + - Connect screens to stores; keep subcomponents mostly pure + - Access the API via store actions + - withStatus extension + - Communicate between stores using extensions + - withRootStore extension