Skip to content

Commit

Permalink
create persisted store
Browse files Browse the repository at this point in the history
  • Loading branch information
dayhaysoos committed Mar 8, 2021
1 parent 3a28978 commit a163da5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions use-shopping-cart/core/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ export function createShoppingCartStore(options) {
}).concat(handleStripe)
})
}

// for non react apps
export function createPersistedStore(store) {
return persistStore(store)
}

0 comments on commit a163da5

Please sign in to comment.