Skip to content

Tag: server-side-rendering

Vue.js prefetch data with client side rendering

I know about ssr (server side rendering) in Vue, such as nuxt. It grabs data in serverPrefetch() function and renders content on server side, only after then the request is returning data to user and he is starting to download app.js. But can we start loading data from backend immediatelly after user request, not waiting for download of vue script,

Axios instance not working with Nextjs: ‘Localstorage not defined’

I have a react app. I have an axios component I want to reuse: Now, I try and import this into my registration page as follows: import axiosInstance from “axiosInstance” The file itself looks like this: However, this throws an error: Can some please help me with this issue? I am new to Nextjs and looked at but not