I have a list and a form on the same page.
Submitting the form adds to the list then redirects back to the same page.
The prop in the response contains the new list item but doesn't reflect on the page. How can I achieve this?
@owen2jan so this is a component and not a page component? I dont use vue myself but as I understand it,, the props are normally bound to $page.props.items
@Sinnbeck
Thanks for the reply, however, I don't think this will work in my case as the prop also needs to be attached to some variable so I can filter the items list too. Lemme restructure my question to include that.
@owen2jan That seems off to me. I do this (the original way) all over my own app (with react) and never had issues. On components I often use usePage() to get the content
@Sinnbeck setting it as shared data will get the data for every request. I think my issue is that the prop wasn't reactive. I managed to solve this by reloading the page onSuccess as above but or even better solution is using toRefs