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