diff --git a/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetForSaleMutation.ts b/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetForSaleMutation.ts index fc4ca6c63..6313832c4 100644 --- a/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetForSaleMutation.ts +++ b/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetForSaleMutation.ts @@ -15,6 +15,7 @@ export function useSetForSaleMutation({ const navigate = useNavigate(); const setForSaleMutation = useMutation({ + mutationKey: ['setProtectedDataForSale'], mutationFn: async ({ priceInRLC }: { priceInRLC: number }) => { const { dataProtectorSharing } = await getDataProtectorClient(); return dataProtectorSharing.setProtectedDataForSale({ diff --git a/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetToRentMutation.ts b/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetToRentMutation.ts index a0a2dbeb7..bdde903f9 100644 --- a/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetToRentMutation.ts +++ b/packages/demo/usecase-demo/src/modules/createNew/monetization/useSetToRentMutation.ts @@ -64,6 +64,7 @@ export function useSetToRentMutation({ }; const setToRentMutation = useMutation({ + mutationKey: ['setProtectedDataToRenting'], mutationFn: async ({ priceInRLC, durationInDays, @@ -114,6 +115,7 @@ export function useSetToRentMutation({ }); const setToSubscriptionMutation = useMutation({ + mutationKey: ['setProtectedDataToSubscription'], mutationFn: async () => { const { dataProtectorSharing } = await getDataProtectorClient(); return dataProtectorSharing.setProtectedDataToSubscription({ diff --git a/packages/demo/usecase-demo/src/modules/oneProtectedData/BuyBlock.tsx b/packages/demo/usecase-demo/src/modules/oneProtectedData/BuyBlock.tsx index f6cd755b1..bc9f7b1cd 100644 --- a/packages/demo/usecase-demo/src/modules/oneProtectedData/BuyBlock.tsx +++ b/packages/demo/usecase-demo/src/modules/oneProtectedData/BuyBlock.tsx @@ -14,6 +14,7 @@ export function BuyBlock({ const queryClient = useQueryClient(); const buyProtectedDataMutation = useMutation({ + mutationKey: ['buyProtectedData'], mutationFn: async () => { const { dataProtectorSharing } = await getDataProtectorClient(); return dataProtectorSharing.buyProtectedData({ diff --git a/packages/demo/usecase-demo/src/modules/oneProtectedData/ContentCardWithConsume.tsx b/packages/demo/usecase-demo/src/modules/oneProtectedData/ContentCardWithConsume.tsx index 1e98263da..38e7c26e0 100644 --- a/packages/demo/usecase-demo/src/modules/oneProtectedData/ContentCardWithConsume.tsx +++ b/packages/demo/usecase-demo/src/modules/oneProtectedData/ContentCardWithConsume.tsx @@ -58,6 +58,7 @@ export function ContentCardWithConsume({ }); const consumeContentMutation = useMutation({ + mutationKey: ['consumeOrGetResult'], mutationFn: async () => { setStatusMessages({}); diff --git a/packages/demo/usecase-demo/src/modules/oneProtectedData/RentBlock.tsx b/packages/demo/usecase-demo/src/modules/oneProtectedData/RentBlock.tsx index b7c50d782..0874866b4 100644 --- a/packages/demo/usecase-demo/src/modules/oneProtectedData/RentBlock.tsx +++ b/packages/demo/usecase-demo/src/modules/oneProtectedData/RentBlock.tsx @@ -18,6 +18,7 @@ export function RentBlock({ const { address: userAddress } = useUserStore(); const rentProtectedDataMutation = useMutation({ + mutationKey: ['rentProtectedData'], mutationFn: async () => { const { dataProtectorSharing } = await getDataProtectorClient(); return dataProtectorSharing.rentProtectedData({ diff --git a/packages/demo/usecase-demo/src/modules/profile/MyCollection.tsx b/packages/demo/usecase-demo/src/modules/profile/MyCollection.tsx index 489d250f0..563d85e1e 100644 --- a/packages/demo/usecase-demo/src/modules/profile/MyCollection.tsx +++ b/packages/demo/usecase-demo/src/modules/profile/MyCollection.tsx @@ -22,6 +22,7 @@ export function MyCollection() { } = useQuery(myCollectionsQuery({ address: address! })); const createCollectionMutation = useMutation({ + mutationKey: ['createCollection'], mutationFn: async () => { const { dataProtectorSharing } = await getDataProtectorClient(); return dataProtectorSharing.createCollection(); diff --git a/packages/demo/usecase-demo/src/modules/profile/SubscriptionParamsForm.tsx b/packages/demo/usecase-demo/src/modules/profile/SubscriptionParamsForm.tsx index 112a48bbc..2e830378d 100644 --- a/packages/demo/usecase-demo/src/modules/profile/SubscriptionParamsForm.tsx +++ b/packages/demo/usecase-demo/src/modules/profile/SubscriptionParamsForm.tsx @@ -34,6 +34,7 @@ export function SubscriptionParamsForm({ ); const changeSubscriptionParamsMutation = useMutation({ + mutationKey: ['setSubscriptionParams'], mutationFn: async () => { const { dataProtectorSharing } = await getDataProtectorClient(); await dataProtectorSharing.setSubscriptionParams({ diff --git a/packages/demo/usecase-demo/src/modules/subscribe/SubscribeButton.tsx b/packages/demo/usecase-demo/src/modules/subscribe/SubscribeButton.tsx index 66add0863..42c206bb1 100644 --- a/packages/demo/usecase-demo/src/modules/subscribe/SubscribeButton.tsx +++ b/packages/demo/usecase-demo/src/modules/subscribe/SubscribeButton.tsx @@ -33,6 +33,7 @@ export function SubscribeButton({ const [isOpen, setOpen] = useState(false); const subscribeMutation = useMutation({ + mutationKey: ['subscribeToCollection'], mutationFn: async () => { if (!collection || !collection.subscriptionParams) { console.log('No collection or no subscriptionParams?');