export const fetchCartItems = createAsyncThunk("cart/fetchItems", async () => {
const response = await fetchItems();
// The value we return becomes the `fulfilled` action payload
// same line for the pending , rejeted
return response.data;
});
Reducers , Builder function and action slice
Builder callback provide some extra features for api.
Like Fullfiled,Rejected,Pending.
So we directly set variable inside builder function