Nuxt/test/fixtures/ssr/pages/fetch.vue
Alexander Lichter b4d81dc584 lint: require await in async function (#3676)
* lint: require await in async function

* lint: replace "error" with 2 in config
2018-08-10 08:41:23 +01:00

15 lines
230 B
Vue

<template>
<foobar>{{ $store.__id }}</foobar>
</template>
<script>
import { nextId } from '@/lib/db'
export default {
fetch({store}) {
// We use store just as a shared reference
store.__id = nextId()
}
}
</script>