-
-
Notifications
You must be signed in to change notification settings - Fork 42
Vue example not reactive + not detected by devtool #48
Comments
Hi Can you share a demo repository / stackblitz? It will be helpful to see a demonstration of what you did. Thanks! |
@davidmeirlevy sure https://github.com/Tumulte/fastifydx-test you can go to |
@Tumulte can you try to use setup function instead of the the options API? |
@davidmeirlevy I have. I've tweaked |
You need to wrap the array with ref() function, as mentioned at the reactivity model of Vue's composition API. |
@davidmeirlevy ah sorry... I'm not too fan of the composition api but I've updated |
Fastify DX alpha is terribly outdated — wait for the public beta featuring Vite 3 support and many other fixes in just 3 days from now 😉 |
Prerequisites
Fastify version
3
Plugin version
0.03
Node.js version
18
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
Monterey 12.6
Description
I'm just trying out the vue ts example, everything works fine but vue is not reactive (i.e : the original data is displayed, but if I do a simple
count++
it won't update. It is also not detected by vue devtoolI use a basic
vue-ts
example from thedev
branch, the only thing I've changed is updating@vueuse/core
to latestSteps to Reproduce
Just install the basic vue example, try reactivity
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: