@yext/search-headless
Version:
A library for powering UI components for Yext Search integrations
19 lines • 516 B
JavaScript
import { createSlice } from '@reduxjs/toolkit';
export const initialState = {};
const reducers = {
setIsLoading: (state, action) => {
state.isLoading = action.payload;
},
};
/**
* Registers with Redux the slice of {@link State} pertaining to the loading status
* of Search Headless.
*/
export default function createSearchStatusSlice(prefix) {
return createSlice({
name: prefix + 'searchStatus',
initialState,
reducers
});
}
//# sourceMappingURL=searchstatus.js.map