Skip to content

Commit a163da5

Browse files
committed
create persisted store
1 parent 3a28978 commit a163da5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

use-shopping-cart/core/store.js

+5
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ export function createShoppingCartStore(options) {
6161
}).concat(handleStripe)
6262
})
6363
}
64+
65+
// for non react apps
66+
export function createPersistedStore(store) {
67+
return persistStore(store)
68+
}

0 commit comments

Comments
 (0)