nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
399 stars 34 forks source link

Add support for fetchOnServer as a function #73

Closed Jamiewarb closed 4 years ago

Jamiewarb commented 4 years ago

Description

This PR adds support for the fetchOnServer hook for Nuxt (https://nuxtjs.org/api/pages-fetch/#options).

Note: This hook only seems to work as a function, and not when given a boolean directly. I am unsure how to resolve that. If anyone can point me in the right direction, I will update this PR.

Resolves #72