Hooks call twice #1426
Unanswered
farshadfahimi
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a model that use hooks like below. I need to use instock as getter but it should be
async
. for that I create hook in this ways. but when I execute thefind
inStock appear twice in console. and I have no idea way that happend.and is there any way to call this data as getter to be
async
for your better understand I should mentioned I use adonis transformer for return data
Beta Was this translation helpful? Give feedback.
All reactions