스토어 물재이용 타입이랑 초기값 추가.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { createStore } from 'zustand/vanilla';
|
||||
import { tableActionsExport, tableStateExport, type tableState, type tableType } from './publicReuseFaciltyInsert/index';
|
||||
export type WrStore = tableType;
|
||||
import { buildingTableActionsExport, buildingtableStateExport, type buildingTableType } from './rainReuseFacilityInsert';
|
||||
export type WrStore = tableType & buildingTableType;
|
||||
export const StoreZus = (initState: tableState = tableStateExport) => {
|
||||
return createStore<WrStore>()((set) => {
|
||||
return {
|
||||
...initState,
|
||||
...tableActionsExport(set)
|
||||
...tableActionsExport(set),
|
||||
...buildingtableStateExport,
|
||||
...buildingTableActionsExport(set)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user