Delete response files

This commit is contained in:
Gregory Schier
2023-04-14 12:17:11 -07:00
parent 19934a93bb
commit f7f7438c9e
6 changed files with 124 additions and 121 deletions

View File

@@ -35,7 +35,8 @@ export function GlobalHooks() {
}
if (!shouldIgnoreModel(payload)) {
queryClient.setQueryData<Model[]>(queryKey, (values) => [...(values ?? []), payload]);
// Order newest first
queryClient.setQueryData<Model[]>(queryKey, (values) => [payload, ...(values ?? [])]);
}
});