MCPcopy
hub / github.com/brimdata/zui / getInitialState

Function getInitialState

apps/zui/src/js/initializers/initStore.ts:11–18  ·  view source on GitHub ↗
(windowId)

Source from the content-addressed store, hash-verified

9
10// Turn this into a single op to call from the exported function
11function getInitialState(windowId) {
12 return Promise.all([
13 invoke("getWindowState", windowId),
14 invoke("getGlobalState"),
15 ]).then(([winState, globalState]) => {
16 return {...winState, ...globalState}
17 })
18}
19
20export default async (api: ZuiApi, renderer) => {
21 const windowId = global.windowId

Callers 1

initStore.tsFile · 0.70

Calls 2

invokeFunction · 0.90
allMethod · 0.45

Tested by

no test coverage detected