Skip to content

Optimizing State Management with Pinia in Nuxt.js #2683

Closed Answered by bchanez
bchanez asked this question in Help and Questions
Discussion options

You must be logged in to vote

Summary of my conversation with Likonima on Discord
https://discord.com/channels/325477692906536972/1248373498846384200

Dynamic Approach:
Prefer providing data directly via props to keep components dynamic.

API Calls:
Perform data fetches at the page level whenever possible, and use advanced caching mechanisms like Tanstack (caching de Nuxt) to optimize performance.
https://www.youtube.com/watch?v=aQPR0xn-MMk&ab_channel=AlexanderLichter

Minimal Use of Stores:
Minimize the use of stores to avoid unnecessary complexity and reduce bundle size.

Structuring:
Structure applications with data calls at the page level and distribute data via props or provide/inject to avoid cognitive overload and …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bchanez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant