DesiredName
DesiredName
NNuxt
Created by Lynx on 12/8/2024 in #❓・help
Advice for creating and managing standalone script
depending on what widget you are doing, I would consider use of plain ts/js script without any frameworks, or, if you really can't go without a 'framework' take a look at Lit (from google) or Fast (from MS)
9 replies
NNuxt
Created by Ahmad .W Nabhan on 12/4/2024 in #❓・help
composables
If put simple, consider useState as a 'store' - you can access the same referenced value across multiple pages / parts of an app. Also that is SSR-friendly (in case the value can be serialized). The 'ref' is just a local wrapper reactive value.
6 replies
NNuxt
Created by Kyoko on 11/26/2024 in #❓・help
not rerendering when changing ref value in async watcher
1. what is state, how is it changed inside serviceStore? 2. watch is not deep by default, so if the state is an object or an array, your watch handler won't be triggered
36 replies