diff options
Diffstat (limited to 'src/features/workspaces/state.js')
-rw-r--r-- | src/features/workspaces/state.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/features/workspaces/state.js b/src/features/workspaces/state.js new file mode 100644 index 000000000..963b96f81 --- /dev/null +++ b/src/features/workspaces/state.js | |||
@@ -0,0 +1,15 @@ | |||
1 | import { observable } from 'mobx'; | ||
2 | |||
3 | const defaultState = { | ||
4 | activeWorkspace: null, | ||
5 | isLoading: false, | ||
6 | isFeatureActive: false, | ||
7 | workspaces: [], | ||
8 | workspaceBeingEdited: null, | ||
9 | }; | ||
10 | |||
11 | export const workspacesState = observable(defaultState); | ||
12 | |||
13 | export function resetState() { | ||
14 | Object.assign(workspacesState, defaultState); | ||
15 | } | ||