chore: remove new fetch warning

This commit is contained in:
pooya parsa 2020-03-12 15:40:03 +01:00
parent 2afddf03c1
commit f1e2362456
2 changed files with 2 additions and 6 deletions

View File

@ -466,9 +466,6 @@ async function render (to, from, next) {
<% if (features.fetch) { %>
const hasFetch = Boolean(Component.options.fetch) && Component.options.fetch.length
if (hasFetch) {
console.warn('fetch(context) has been deprecated, please use middleware(context)')
}
<% } else { %>
const hasFetch = false
<% } %>

View File

@ -280,7 +280,6 @@ export default async (ssrContext) => {
<% if (features.fetch) { %>
// Call fetch(context)
if (Component.options.fetch && Component.options.fetch.length) {
console.warn('fetch(context) has been deprecated, please use middleware(context)')
promises.push(Component.options.fetch(app.context))
} else {
promises.push(null)