A few issues
This commit is contained in:
Родитель
7d250c2497
Коммит
962551a400
|
@ -35,7 +35,14 @@ export function <%- hookName %>(variables, config = {}) {
|
|||
create: createConfig,
|
||||
} = defaultConfig;
|
||||
|
||||
const [data, paginationMethods] = usePagination(dataRefId, fetchSpec, paginationConfig);
|
||||
const expandedPaginationConfig = useMemo(() => ({
|
||||
fetchVariables: {
|
||||
...variables,
|
||||
},
|
||||
...paginationConfig,
|
||||
}), [variables, paginationConfig]);
|
||||
|
||||
const [data, paginationMethods] = usePagination(dataRefId, fetchSpec, expandedPaginationConfig);
|
||||
const mutateFn = useMutation(dataRefId, mutationSpec, mutationConfig);
|
||||
const destroyFn = useMutation(dataRefId, destroySpec, destroyConfig);
|
||||
const createFn = useMutation(dataRefId, addSpec, createConfig);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
export { middlewares, getEnvironmentInstance } from './env/env-instance';
|
||||
export { getRequestor } from './env/requestor';
|
||||
export { schema } from './env/schema';
|
||||
|
||||
// exports all available data hooks produced by overreact-odata
|
||||
<% for (const e of exports) { %>
|
||||
|
|
Загрузка…
Ссылка в новой задаче