Skip to content

Commit

Permalink
docs: improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Mar 25, 2020
1 parent ce1a3de commit ee635a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ async asyncData({ $shopify, params }) {

```ts
methods: {
async fetchSomething(productId) {
const product = await $shopify.product.fetch(productId);
this.product = product;
async fetchProduct(productId) {
this.product = await this.$shopify.product.fetch(productId);
}
}
```
Expand Down

0 comments on commit ee635a3

Please sign in to comment.