Hey, Is search a reactive property? If not make it reactive and test again.
Apr 5, 2024
6
Level 63
Computed property not working
Hello,
I have several computed properties, but this one doesn't work.
const foundRight = computed(() => {
return rights.value.find((right) => {
return (
right.branch_id === search.branch_id &&
right.user_id === search.user_id
);
});
});
I have added some console log inside the computed function, but it seems to be never evaluated.
What am I doing wrong ?
Thanks for your help.
V
Level 29
@vincent15000 I quickly tested your code and it seems to work fine
This is the link of the playground / test scenario I used: Vue Playground
1 like
Please or to participate in this conversation.