this works but nope?

I'm new to Suspense, this works great but I get the error: Did you forget to use 'await'? It works, it shows the loading state when I press the button but I get this error, any clue? If I add the async await it won't show the loading state.
No description
2 Replies
TurnipSwagger
TurnipSwagger8mo ago
Suspense doesn't do anything if the child component is not suspended. That is why you get the message about forgetting await. You can add await, but there is no promise to await, so there is nothing that is suspended. setEmail should be a promise that takes some time to complete, otherwise there is no use in using suspense.
K1|ller
K1|llerOP8mo ago
awesome man thanks, been busy to read about it i'm literally guessing how it works :theowat:
Want results from more Discord servers?
Add your server