Pass data to a cart page as a object with multiple values – state management

I’d like to pass a data i.e. id, title to a cart page as array of objects, but Typescript screaming at me that I did sth wrong, but i don’t know what. error(1): Argument of type ‘(state: CartState) => { carts: (string | SugarProductSchema)[]; }’ is not assignable to parameter of type ‘CartState | Partial… Read More Pass data to a cart page as a object with multiple values – state management