D
D
DeniSidorenko2020-10-28 08:34:59
Node.js
DeniSidorenko, 2020-10-28 08:34:59

What is the best way to store a user's order?

Good afternoon, I'm making a website on the MERN stack.
What is the best way to store the user's goods that he added to the cart?
Localstorage or have more relevant data. I think it makes sense to store on the server side only for authorized users. And here is more a question with regards to unauthorized

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Antonov, 2020-10-28
@freislot

If you want the cart to be saved after page refresh, then in locastorage. If this is not critical, then you can store in the application state

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question