Untitled
unknown
plain_text
a year ago
741 B
4
Indexable
addPaymentCardAndOrderThunk: create.asyncThunk( async ({id, currentUser}: {id: string | number;currentUser: User;}) => { const res = await addPaymentCardAndOrderAPI({ id, currentUser }); return res; }, { pending: (state) => { return { ...state, loading: true, }; }, fulfilled: (state, action) => { const { data, status } = action.payload; return { ...state, loading: false, personalData: data, status: status, }; }, rejected: (state) => { return { ...state, loading: false, }; }, } )
Editor is loading...
Leave a Comment