u3u/vue-hooks

Getter does not accept payload

Closed this issue ยท 3 comments

Hello, I am trying to send a payload through the Getter but it sends me an error in the console where it tells me that it is not a function. How could I send a payload to filter store data please.

As follows
getters.myGetter("filter")

Yup, want to pass a value in getter but can't.

@CRLL19-81 Just played with it a little bit, you can do it like,

getters.myGetter.value('filter')

Worked for me.

@anwaar931 you are absolutely right, thank you very much, excuse my ignorance