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
T
TurnipSwagger12d 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.
PM
Pablo M10d ago
awesome man thanks, been busy to read about it i'm literally guessing how it works :theowat: