Skip to main content

foundation-redux.slicearray

Home > @genesislcap/foundation-redux > SliceArray

SliceArray type

An array of slices that will be combined into a single store.

Signature:

export type SliceArray = Slice[];

References: Slice

Remarks

This type represents the collection of slices that will be used to create a Redux store. Each slice in the array will become a top-level key in the store's state.

Example

const slices: SliceArray = [userSlice, cartSlice, preferencesSlice];
const { store } = createStore(slices, initialState);