Management state while using prisma

Hey fellow devs, I'm building a side project which is e-commerce and for instance adding product to the cart in general it can by global management state.

The question here if I did this with without management state, just directly by server actions and prisma to the database will this approach be efficient or not?

Is there more efficient way to do this? Thank you in advance