access Pinia variable dynamically

//can I do this??
const store = useStore()
const { ${my_dynamic_var } from storeToRefs(store);
//can I do this??
const store = useStore()
const { ${my_dynamic_var } from storeToRefs(store);
can this be done earlier today I also did
store[props.pinia] = my_new_var //this works
store[props.pinia] = my_new_var //this works
this one works
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?