Create Order Mutation Hook (orders/useCreateOrder.ts)
React Query mutation that creates an order from a basket id and invalidates the orders list cache on success. Reuse it when checkout submits a basket as a new order.
- Repository
- BookWorm
- Language
- typescript
- SPDX licence
- MIT
- Quality score (dated snapshot)
- 9.2/10
- Category
- pos
Review source and licence terms before reuse. View on the service