Delete response files

This commit is contained in:
Gregory Schier
2023-04-14 12:17:11 -07:00
parent 4a5b1f4da3
commit 7245e6e593
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 ?? [])]);
}
});