MCPcopy Index your code
hub / github.com/bytebase/bytebase / getState

Function getState

frontend/src/react/components/MatchedDatabaseView.test.tsx:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49vi.mock("@/react/stores/app", () => {
50 const getState = () => ({
51 batchGetOrFetchDatabases: mocks.batchGetOrFetchDatabases,
52 databasesByName: mocks.databasesByName,
53 environmentList: [],
54 fetchDatabases: mocks.fetchDatabases,
55 getDatabaseByName: mocks.getDatabaseByName,
56 getEnvironmentByName: mocks.getEnvironmentByName,
57 });
58 const useAppStore = <T,>(
59 selector: (state: ReturnType<typeof getState>) => T
60 ) => selector(getState());

Callers 1

useAppStoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected