Browse Source

Update usage of DataFetching in client apps

pull/4223/head
Andrew Kingston 5 years ago
parent
commit
e151ddde07
  1. 18
      packages/client/src/components/app/DataProvider.svelte

18
packages/client/src/components/app/DataProvider.svelte

@ -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,
},
}) })
} }

Loading…
Cancel
Save