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
It would be nice if we could have immediate cart state when a page renders by using browser local storage to save cart state. We could also apply a "stale while revalidate" strategy, where we show the stale data from local storage, but still go and fetch the cart from the server on load to ensure data is fresh.
Additionally, we could add in functionality to set the cart as "stale" (and refresh it) when a window regains focus, meaning carts will self-update if a customer has added items to their cart on a different tab.
The text was updated successfully, but these errors were encountered:
It would be nice if we could have immediate cart state when a page renders by using browser local storage to save cart state. We could also apply a "stale while revalidate" strategy, where we show the stale data from local storage, but still go and fetch the cart from the server on load to ensure data is fresh.
Additionally, we could add in functionality to set the cart as "stale" (and refresh it) when a window regains focus, meaning carts will self-update if a customer has added items to their cart on a different tab.
The text was updated successfully, but these errors were encountered: