SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
740 stars 386 forks source link

Browser storage improvements #10440

Open tobi-or-not-tobi opened 3 years ago

tobi-or-not-tobi commented 3 years ago

Improve the state persistence:

LTiger14 commented 3 years ago

This issue with Safari described here is fixed in newer versions. Based on caniuse known issues section Safari on desktop and IOS version 10.x does not support setting localStorage and Session storage. For reference current version is 14.

We will still move to the StatePersistenceService since it offers many advantages. We also plan to move the site context to localStorage to be consistent with the rest of the Spartacus persistence.

LTiger14 commented 3 years ago

Updating with some comments from a talk with Tobias: