MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / getState

Method getState

src/importer/state.tsx:88–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 public async getState(): Promise<ImporterState> {
89 let state = this.initialState;
90
91 this.buildSteps.forEach((step) => {
92 state = reducer(state, step);
93 });
94
95 const validationErrors = await applyValidations(
96 this.importerDefinition.sheets,
97 state.sheetData
98 ).catch(() => state.validationErrors);
99
100 return { ...state, validationErrors };
101 }
102
103 public async uploadFile(file: File) {
104 const csvFile = await convertCsvFile(

Callers 2

confirmMappingsMethod · 0.95
dispatchChangeMethod · 0.80

Calls 2

reducerFunction · 0.90
applyValidationsFunction · 0.90

Tested by

no test coverage detected