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