MCPcopy Create free account
hub / github.com/microsoft/data-formulator / loadingLoadable

Function loadingLoadable

src/app/loadableState.ts:14–18  ·  view source on GitHub ↗
(previous?: LoadableState<T>)

Source from the content-addressed store, hash-verified

12});
13
14export const loadingLoadable = <T>(previous?: LoadableState<T>): LoadableState<T> => ({
15 status: 'loading',
16 data: previous?.data,
17 updatedAt: previous?.updatedAt,
18});
19
20export const successLoadable = <T>(
21 data: T,

Callers 2

DataSourceSidebarPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected