#How to wait for the value from a useAction?
6 messages · Page 1 of 1 (latest)
Oh seems like I was supposed to use cache rather than an action, and then I use createAsync calling the cache?
no, personally I needed to use an action because of CORS, but createAsync answers my original question.
const check = useAction(checkWhitepaper);
const result = createAsync(() => check(hostname));
oh seems like you can also "use server" in cache