diff options
| author | Haishan <[email protected]> | 2020-03-20 22:19:56 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-03-21 13:33:43 +0800 |
| commit | 8e48c01e7aada6978e92a6da1d040f3ef0d37945 (patch) | |
| tree | 63cdf772b88d2cff340449ba98225bdbad526a19 /src/components/StateProvider.js | |
| parent | c5d70b5236be5ce0fb067bab3c8eeb6e946a73dd (diff) | |
feat: remembers group collapse state
for https://github.com/haishanh/yacd/issues/480
Diffstat (limited to 'src/components/StateProvider.js')
| -rw-r--r-- | src/components/StateProvider.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/StateProvider.js b/src/components/StateProvider.js index 30b1cda..e675f89 100644 --- a/src/components/StateProvider.js +++ b/src/components/StateProvider.js @@ -99,6 +99,8 @@ function bindActions(actions, dispatch) { const action = actions[key]; if (typeof action === 'function') { boundActions[key] = bindAction(action, dispatch); + } else if (typeof action === 'object') { + boundActions[key] = bindActions(action, dispatch); } } return boundActions; |
