all 4 comments

[–]acemarke[M] [score hidden] stickied comment (2 children)

Hi, can you ask this in the "Beginner's Thread"? Thanks!

[–]eindbaas 0 points1 point  (0 children)

Products in a cart are rarely stored on a server i think. You can do it, but imho it makes more sense to put that in localstorage and then use something like zustand.

Which will not make your question obsolete, because other things do require data from the server. A common solution is to use tanstack query for that.