fix(dashboard): bust variant inventory cache on inventory update (#11690)
This commit is contained in:
1 parent
7465604ae5
commit
954136f13a
2 files changed
+8
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(dashboard): bust variant inventory cache on inventory update
|
||||||
@@ -205,6 +205,9 @@ export const useUpdateInventoryLevel = (
|
|||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
queryKey: inventoryItemLevelsQueryKeys.detail(inventoryItemId),
|
queryKey: inventoryItemLevelsQueryKeys.detail(inventoryItemId),
|
||||||
})
|
})
|
||||||
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: variantsQueryKeys.details(),
|
||||||
|
})
|
||||||
options?.onSuccess?.(data, variables, context)
|
options?.onSuccess?.(data, variables, context)
|
||||||
},
|
},
|
||||||
...options,
|
...options,
|
||||||
|
|||||||
Reference in new issue
Block a user