Vue · Senior · Question 20 of 75

What is cross-request state pollution in Vue SSR?

// store.js
export const state = reactive({ user: null });

Explanation

On the server, create app, router and stores per request (createApp() factory, app.provide, Pinia per request). Pinia and Nuxt handle this when used correctly.

Further reading

Problem with a question

Vue · Senior · question 20

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz