refactored link state management + a lot of other changes...

This commit is contained in:
daniel31x13
2024-08-13 00:08:57 -04:00
parent a73e5fa6c6
commit 80f366cd7b
58 changed files with 1302 additions and 819 deletions
-3
View File
@@ -11,7 +11,6 @@ const useCollections = () => {
const data = await response.json();
return data.response;
},
initialData: [],
});
};
@@ -42,8 +41,6 @@ const useCreateCollection = () => {
onSuccess: (data) => {
toast.success(t("created"));
return queryClient.setQueryData(["collections"], (oldData: any) => {
console.log([...oldData, data]);
return [...oldData, data];
});
},