diff --git a/use-shopping-cart/core/store.js b/use-shopping-cart/core/store.js index 210a6a0a..8aa47a61 100644 --- a/use-shopping-cart/core/store.js +++ b/use-shopping-cart/core/store.js @@ -61,3 +61,8 @@ export function createShoppingCartStore(options) { }).concat(handleStripe) }) } + +// for non react apps +export function createPersistedStore(store) { + return persistStore(store) +}