1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00

Update usage of DataFetching in client apps

This commit is contained in:
Andrew Kingston 2022-01-20 11:29:30 +00:00
parent 6a07e727cd
commit c7e98623bc

View file

@ -11,7 +11,7 @@
export let limit export let limit
export let paginate export let paginate
const { styleable, Provider, ActionTypes } = getContext("sdk") const { styleable, Provider, ActionTypes, API } = getContext("sdk")
const component = getContext("component") const component = getContext("component")
// We need to manage our lucene query manually as we want to allow components // We need to manage our lucene query manually as we want to allow components
@ -82,12 +82,16 @@
} }
const createFetch = datasource => { const createFetch = datasource => {
return fetchData(datasource, { return fetchData({
query, API,
sortColumn, datasource,
sortOrder, options: {
limit, query,
paginate, sortColumn,
sortOrder,
limit,
paginate,
},
}) })
} }