Open ericxin1982 opened 9 months ago
I changed to this way, it works. But I have another concern, the x-init would it would trigger twice.
Thanks Eric Xin
I do not use dynamic html feature, I just used static html inside.
I tried it in a simple component, it is the same, init run twice.
Thanks Eric Xin
<template ... x-data="put default static value here, but do not bind to external variable">..
onMounted
, please refer to examples/spa/app.html Excellent.
Thanks Eric Xin
Hi @xinjie-zhang
I have a further question, sometimes you would define x-data for component definition, sometimes you would define x-data for component instance only, what is the standard I should follow?
Thanks Eric Xin
Hi @xinjie-zhang
Sorry to bother you, I try to create a top tree object to organize the data object for each x-data need, and I found vimesh-ui cannot read that, and vimesh-ui x-data source must be inline or created by alpine.data that way, how I can solve this?
thanks Eric Xin