You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to set up a search page and am trying to use v-model in a custom component, however, watching the v-model property is not updating 'getItems'. I see the changes getting reflected in the vue development tools in the postsRequest.params but i'm unable to fetch the updated items and the posts computed property remains unchanged.
I asked this question on stackoverflow and and a user has commented this:
you are watching searchAuthor so when it changes you are mutating the postsRequest object then calling the store action getItems (also the syntax is correct but i'm not sure what exactly it does... if you don't see the data change then it is the reason) so you need to understand what this API is doing to your store after you give it the data objects.
I'd appreciate if you could point me in the right direction.
So , like we said on StackOverflow ... the v-model is working fine ... the problem lives inside your store actions ... you should change the question title and include your API tag (I'll try to solve this issue too)
Hi, sorry to trouble you again. A lot of my components would require a search feature. Any advice you can give on how to make "watch" work with this. Thank you.
Hi, I am trying to set up a search page and am trying to use v-model in a custom component, however, watching the v-model property is not updating 'getItems'. I see the changes getting reflected in the vue development tools in the postsRequest.params but i'm unable to fetch the updated items and the posts computed property remains unchanged.
I asked this question on stackoverflow and and a user has commented this:
I'd appreciate if you could point me in the right direction.
My code:
The text was updated successfully, but these errors were encountered: