79276670

Date: 2024-12-12 21:39:46
Score: 1.5
Natty:
Report link

Some reading and it presented the solution for me.

To maintain the value of the cart between pages and navigation/redirect, it's mentioned in the docs under stateManagement section.

Use setContext and getContext

https://svelte.dev/docs/kit/state-management#Using-stores-with-context

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Marco