Question: client side state possible? #160
Replies: 2 comments 5 replies
-
Great question! I've been wanting to try it out to build an ecommerce site but haven't had a use-case yet. Primo doesn't currently offer a built-in way of maintaining state across page changes, but I've created some sites with app-like functionality and handled their state using Supabase as a backend which would fetch the data on each page load. But for an shopping cart, I'd probably keep the shopping cart saved locally (using idb-keyval or something similar), especially if its an anonymous account. Curious if you think those strategies would work for you, or if there's something primo could do make it easier/better. |
Beta Was this translation helpful? Give feedback.
-
I haven't tried it but the following should work:
|
Beta Was this translation helpful? Give feedback.
-
This is a question really, more than a feature request.
Can primo support client side state, as a svelte store or otherwise?
What I really want to know is could I use primo to build an ecommerce site with a shopping cart that retains state across page navigation?
Beta Was this translation helpful? Give feedback.
All reactions