blob: 963b96f81c4bad060842374402f4fac541a07a7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { observable } from 'mobx';
const defaultState = {
activeWorkspace: null,
isLoading: false,
isFeatureActive: false,
workspaces: [],
workspaceBeingEdited: null,
};
export const workspacesState = observable(defaultState);
export function resetState() {
Object.assign(workspacesState, defaultState);
}
|