Skip to content

Commit

Permalink
fix: cart update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
itswadesh committed Apr 29, 2022
1 parent 7f4a283 commit 1b8e75e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "svelte-commerce",
"version": "2022.04.29",
"scripts": {
"dev": "svelte-kit dev",
"dev": "svelte-kit dev --host",
"gen": "graphql-codegen --require dotenv/config",
"build": "svelte-kit build",
"package": "svelte-kit package",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { store } from './../util'
onMount(async () => {
await KQL_Me.query({})
await KQL_Cart.query({})
await KQL_Cart.query({ settings: { policy: 'network-only' } })
})
export let section
Expand Down
2 changes: 1 addition & 1 deletion src/routes/cart/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const seoProps = {
}
async function refreshCart() {
await KQL_Cart.resetCache()
await KQL_Cart.query({ variables: { store: store.id } })
await KQL_Cart.query({ variables: { store: store.id }, settings: { policy: 'network-only' } })
}
async function addToCart({ detail: { item, qty } }) {
try {
Expand Down

1 comment on commit 1b8e75e

@vercel
Copy link

@vercel vercel bot commented on 1b8e75e Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.