nuxt-property-decorator
nuxt-property-decorator copied to clipboard
New fetchDelay hook for Nuxt >=2.12
Just like issue (https://github.com/nuxt-community/nuxt-property-decorator/issues/72). Nuxt 2.12+ introduces a new option called fetchDelay
.
As per documentation (https://nuxtjs.org/docs/components-glossary/fetch/#options):
fetchDelay
is a variable of type integer with a default value of 200, set the minimum executing time in milliseconds (to avoid quick flashes)
The temporary workaround for example and is based on #72 is:
Component.registerHooks(['fetchDelay']);
@Component
export default class MyComponent extends Vue {
fetchDelay() { return 1000 }; //for 1 second
}
I would like to request if we can add support for fetchDelay as a function.