skip to Main Content

Stock Mutation with Mysql

I have mutation table that stores transactions: M_Date Item_ID Qty 2024-01-02 B-0001 4 2024-01-03 B-0001 2 2024-01-03 B-0001 -1 2024-01-04 B-0001 -2 2024-01-03 B-0002 5 2024-01-03 B-0002 -2 2024-01-04 B-0002 1 2024-01-06 B-0002 -2 the scenario is; I select begin…

VIEW QUESTION

Reactjs – How to submit form with react-query

I have following code const useCreateSupplier = (createSupplierCommand: CreateSupplierCommand) => { return useMutation({ mutationFn: () => axiosClient .post("/supplier", { createSupplierCommand }) .then((res: AxiosResponse) => res.data), onSuccess: async () => { await queryClient.invalidateQueries({ queryKey: [queries.get_suppliers], }); }, }); }; const CreateSupplierForm…

VIEW QUESTION
Back To Top
Search