Skip to content
Snippets Groups Projects
Commit 03a96611 authored by Tom Robinson's avatar Tom Robinson
Browse files

Remove old code

parent 65ffba34
Branches
Tags
No related merge requests found
......@@ -177,24 +177,6 @@ export function createEntity(def: EntityDefinition): Entity {
fetchList: createThunkAction(
FETCH_LIST_ACTION,
// (query = {}, reload = false) => async (dispatch, getState) => {
// const statePath = ["entities", entity.name + "_list", "fetch"];
// try {
// dispatch(setRequestState({ statePath, state: "LOADING" }));
// const result = normalize(await entity.api.list(query), [
// entity.schema,
// ]);
// setTimeout(
// () => dispatch(setRequestState({ statePath, state: "LOADED" })),
// 10,
// );
// return result;
// } catch (error) {
// console.error(`${FETCH_LIST_ACTION} failed:`, error);
// dispatch(setRequestState({ statePath, error }));
// throw error;
// }
// },
(query = {}, reload = false) => (dispatch, getState) =>
fetchData({
dispatch,
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment