@atomic-solutions/woocommerce-react 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -426,10 +426,11 @@ var useProcessCheckout = () => {
426
426
  mutationKey: queryKeys.checkout.mutations.process(),
427
427
  mutationFn: (input) => client.checkout.process(input),
428
428
  onSuccess: (checkout) => {
429
+ const cart = queryClient.getQueryData(queryKeys.cart.details()) ?? null;
429
430
  queryClient.invalidateQueries({ queryKey: queryKeys.cart.all });
430
431
  queryClient.invalidateQueries({ queryKey: queryKeys.checkout.all });
431
432
  if (emitEvent) {
432
- emitEvent(createSuccessEvent("checkout:processed", { checkout }));
433
+ emitEvent(createSuccessEvent("checkout:processed", { checkout, cart }));
433
434
  }
434
435
  },
435
436
  onError: (error) => {