Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ export function useCreateDataSet(props: UseCreateDataSetProps) {
const dataSet = await SP.waitForCreateDataSet({ statusUrl })

queryClient.invalidateQueries({
queryKey: ['synapse-warm-storage-data-sets', account.address],
})
queryClient.invalidateQueries({
queryKey: ['synapse-warm-storage-providers-with-data-sets', account.address],
queryKey: ['synapse-warm-storage-data-sets', account.address, config.getClient().chain.id],
})
return dataSet
},
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-react/src/warm-storage/use-data-sets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function useDataSets(props: UseDataSetsProps) {
const config = useConfig()
const address = props.address
return useQuery({
queryKey: ['synapse-warm-storage-data-sets', address],
queryKey: ['synapse-warm-storage-data-sets', address, config.getClient().chain.id],
queryFn: address
? async () => {
const dataSets = await getPdpDataSets(config.getClient(), { address })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function useDeletePiece(props: UseDeletePieceProps) {
const rsp = await waitForTransactionReceipt(client, deletePieceRsp)

queryClient.invalidateQueries({
queryKey: ['synapse-warm-storage-data-sets', account.address],
queryKey: ['synapse-warm-storage-data-sets', account.address, config.getClient().chain.id],
})
return rsp
},
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-react/src/warm-storage/use-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function useProviders(props?: UseProvidersProps) {

return useQuery({
...props?.query,
queryKey: ['synapse-warm-storage-providers'],
queryKey: ['synapse-warm-storage-providers', config.getClient().chain.id],
queryFn: () => {
return getApprovedPDPProviders(config.getClient())
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useServicePrice(props?: UseServicePriceProps) {

return useQuery({
...props?.query,
queryKey: ['synapse-warm-storage-get-service-price'],
queryKey: ['synapse-warm-storage-get-service-price', config.getClient().chain.id],
queryFn: async () => {
const result = await getServicePrice(config.getClient())
return result
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-react/src/warm-storage/use-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function useUpload(props: UseUploadProps) {
const rsp = await SP.waitForAddPieces(uploadRsp)

queryClient.invalidateQueries({
queryKey: ['synapse-warm-storage-data-sets', account.address],
queryKey: ['synapse-warm-storage-data-sets', account.address, config.getClient().chain.id],
})
return rsp
},
Expand Down