Home

Issue: 320

Code duplication

[issue link]

Hi,

Is there a way in nuxt by which I call the same set of lines when app is server side rendered i.e. calling code from apps data method and the same code when the app is client side rendered i.e. calling code present in a watch without writing the same code twice.

It is an obvious use case for dynamically identifying weaker server or weaker client delivering the optimum UX.

This question is available on Nuxt.js community (#c275)