Cheaterman
Cheaterman
NNuxt
Created by Cheaterman on 8/5/2024 in #❓・help
Conditional :ui
Good one, thanks
3 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
Either that or you can go back to your original solution with .value - it does save some typing
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
Might not be ideal but it does "make sense" IMHO
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
That's why I gave you the solution where each individual property of the object is a ref 🙂
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
And I expected reactive() to help change that ref into something that can be observed without .value, but it didn't work
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
I don't think IDE is going to help 😦
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
(might not be exactly correct but it's a mental model that "works" for me)
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
But that's just a guess
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
ie less params.limit = xyz and more params = {...params, limit: xyz}
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
As to why you want to use .value, I believe it's because otherwise you're not observing the proxy object for changes, you're observing a ref to it which itself isn't changing unless you re-assign a whole object
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
So, I think it's not "bad" to have one property per variable, because that's kind of why Vue has fine-grained reactivity etc 😄
36 replies
NNuxt
Created by Kuroro on 2/27/2024 in #❓・help
Differents watch sources using useState
Just give it some time I suppose haha
36 replies