Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the ssrRef from provider store #4230

Closed
obulat opened this issue Apr 30, 2024 · 0 comments · Fixed by #4231
Closed

Remove the ssrRef from provider store #4230

obulat opened this issue Apr 30, 2024 · 0 comments · Fixed by #4231
Assignees
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: frontend Related to the Nuxt frontend

Comments

@obulat
Copy link
Contributor

obulat commented Apr 30, 2024

Problem

ssrRef from @nuxtjs/composition-api does not have a very good analog in Nuxt 3. In fact, it's not really needed in the store.

Description

The store state should be initiated once per user request in a plugin instead of the middleware that runs on every navigation.
An init-stores plugin can initialize the state of the provider store (fetching data from /stats endpoint), as well as setting the UI store state from cookies.

Alternatives

Additional context

Priority set to high because this is necessary for Nuxt 3 migration.

@obulat obulat added 🟧 priority: high Stalls work on the project or its dependents ✨ goal: improvement Improvement to an existing user-facing feature 💻 aspect: code Concerns the software code in the repository 🧱 stack: frontend Related to the Nuxt frontend labels Apr 30, 2024
@obulat obulat self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: frontend Related to the Nuxt frontend
Projects
Archived in project
1 participant