I am currently working on developing a todo app using ionic-vue with vue 3. In my Lists.vue component, I have set up an overview where users can click on different lists to load tasks specific to each list. However, I am facing an issue where the same data is being displayed every time a list is clicked. It seems like the component is being reused but not properly re-rendered or updated.
I have attempted various solutions to address this issue, such as implementing a watch on the changing ref, but it did not yield the desired result. Even adding a :key to the router-link did not resolve the problem.
Below is a snippet of my Lists.vue component:
// code snippet here...
In addition, I also have another component called Index.vue which displays individual list details:
// code snippet here...
Furthermore, I have created a composable function to fetch data for the app:
// code snippet here...
If anyone has any suggestions or insights on how to fix the issue I am facing, I would greatly appreciate your help. Thank you in advance for your valuable input!
Please note that I may not be able to respond quickly due to certain circumstances, but rest assured I will get back to your answers as soon as possible :)