@empathyco/x-components
Version:
Empathy X Components
21 lines (19 loc) • 533 B
JavaScript
/**
* Default implementation for the {@link RecommendationsGetters.request} getter.
*
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the query
* suggestions module.
* @returns The recommendations request to fetch data from the API.
*
* @public
*/
const request = ({ origin, config, params, }) => {
return {
rows: config.maxItemsToRequest,
start: 0,
origin,
extraParams: params,
};
};
export { request };
//# sourceMappingURL=request.getter.js.map