Context.async is not a function err

Hey there.
I read a lot of forum topics and still can’t figure this out. I try to return the results of API call in my plugin and I use context.async, but when I run it there is this error.


Here is the part of the code with context.async:


I hope somebody can help me

is this a server side action? if that’s the case you may want to read this

Yes, this is exactly what the problem was.

Just need to change it to context.v3.async and it’s fine.


Edit: Turns out you don’t need to use context.async at all. Just await now.