Skip to content

Commit bffc238

Browse files
authored
Merge pull request #379 from bakaphp/feat/cart-discount
hotfix: cart cache
2 parents d6823b4 + d433956 commit bffc238

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.27.1",
2+
"version": "0.27.2",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/modules/commerce/cart/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export class Cart {
3030
public async getCart(): Promise<CartData> {
3131
const response = await this.client.query({
3232
query: GET_CART_QUERY,
33+
fetchPolicy: 'no-cache',
34+
partialRefetch: true,
3335
});
3436

3537
return response.data;

0 commit comments

Comments
 (0)