Static GitHub Issues

[2255] The fetch method does not have a callback param.

prev: Dynamic routes generation for multiple component in NUXT
next: generate routes using Apollo in nuxt.config.js

In the documentation it states:

The fetch method is used to fill the store before rendering the page, it's like the asyncData method except it doesn't set the component data.

The asyncData has a callback for the case someone doesn't want to use promises, however the fetch method seems to lack this function parameter. I think the fetch method should be able to handle a callback with a possible error parameter even if it does not return any data.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1977">#c1977</a>)</em></sub></div>