forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.ts
More file actions
47 lines (29 loc) · 1.13 KB
/
state.ts
File metadata and controls
47 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { derive } from 'overmind'
import * as derived from './derived'
import { Apps, Tab, App, Component, Flush, Action } from './types'
export let isConnecting: boolean = true
export let isLoading: boolean = true
export let isAddingPort: boolean = false
export let error: string = null
export let currentPort: string = null
export let apps: Apps = {}
export let newPortValue: string = ''
export let currentTab: Tab = Tab.State
export let expandedStatePaths: string[] = ['']
export const currentApp: App = derive(derived.currentApp)
export const componentsMounted: Component[] = derive(derived.componentsMounted)
export const componentsUpdateCount: number = derive(
derived.componentsUpdateCount
)
export const componentsStatePathCount: number = derive(
derived.componentsStatePathCount
)
export const flushes: Flush[] = derive(derived.flushes)
export const flushesMutationsCount: number = derive(
derived.flushesMutationsCount
)
export const flushesStatePathCount: number = derive(
derived.flushesStatePathCount
)
export const currentAction: Action = derive(derived.currentAction)
export let expandAllActionDetails: boolean = false