MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / createDefaultFileState

Function createDefaultFileState

frontend/src/store/dataPreviewStore.ts:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34// Default state for a new file
35const createDefaultFileState = (): FilePreviewState => ({
36 currentPage: 1,
37 rowsPerPage: 1000,
38 totalRows: null,
39 totalPages: 0,
40 data: null,
41 columns: null,
42 isLoading: false,
43 isCountLoading: false,
44 error: null,
45 lastFetchTime: 0,
46});
47
48/**
49 * Zustand store for data preview pagination

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected