Melvin
Melvin
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
Ah great 🙂
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
Option 1 is useful if you want to ensure the entire page component is re-created on each visit. Option 2 can be helpful if you're only changing top-level properties of the state object.
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
Could you try these (individually) and see if the caching still persists?
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
Claude indeed suggests manually resetting but comes up with a few other clever solutions: 1. use definePageMeta with keepalive: false 2. use a shallowRef instead of ref
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
No description
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
It's the same as the javascript purists before the framework revolution where they refused to use any build tools because "it'll only make development process more cumbersome and harder". It's nonsense, if used correctly LLMs are amazing productivity tools that help developers build better, more qualitative products in a shorter amount of time.
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
I've found much help using Large Language Models for advanced auto-complete (Github Co-Pilot) as well as rubber ducking, laying out a roadmap, brainstorming and code-generation (Claude).
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
You're completely free to hinder yourself by refusing to use a tool due to your own biases. But please refrain from diluting a conversation with an opinion plug in the future.
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
lmao
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
It's been really good at analyzing spaghetti and spotting potential causees of bugs
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
Have you tried asking claude?
41 replies
NNuxt
Created by Revadike on 8/24/2024 in #❓・help
Reset component state after navigation
How do you manage your state?
41 replies
NNuxt
Created by Rush on 7/10/2024 in #❓・help
Pinia store socket.io error
IDK the exact details but Pinia has great documentation on their website
11 replies
NNuxt
Created by Rush on 7/10/2024 in #❓・help
Pinia store socket.io error
We have a plugin that sets the socket connection and stores it in pinia store, that works. Otherwise you should figure out how to have a pinia store initted only on the client
11 replies
NNuxt
Created by Rush on 7/10/2024 in #❓・help
Pinia store socket.io error
Making sure this only happens on the client should solve the problem
11 replies
NNuxt
Created by Rush on 7/10/2024 in #❓・help
Pinia store socket.io error
Nuxt / Pinia stringifies JSON before sending data from the server to the client. It seems like the socket has functions that cannot be strinigified
11 replies