You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment we use a form submit for Add to Cart.
This works fine (and demonstrates a SSR solution, as intended) but results in a server request and a page reload each time an item is added to the cart.
We'll need to do something different once we've implemented identity/login but, in the meantime, we could look at simple JavaScript options, to update a local cart stored with localStorage (or whatever). It might be nice to combine this with a server-side rendered cart page. (We've also talked about looking into offline/flakey options at a later date: site functionality — including Add to Cart — should be available.)
I've made a start on a Cart class — give me a shout if you're picking up this PR.
The text was updated successfully, but these errors were encountered:
At the moment we use a form submit for Add to Cart.
This works fine (and demonstrates a SSR solution, as intended) but results in a server request and a page reload each time an item is added to the cart.
We'll need to do something different once we've implemented identity/login but, in the meantime, we could look at simple JavaScript options, to update a local cart stored with localStorage (or whatever). It might be nice to combine this with a server-side rendered cart page. (We've also talked about looking into offline/flakey options at a later date: site functionality — including Add to Cart — should be available.)
I've made a start on a Cart class — give me a shout if you're picking up this PR.
The text was updated successfully, but these errors were encountered: