Next.js Discord

Discord Forum

Can't use data from fetch api

Unanswered
Chihuahua posted this in #help-forum
Open in Discord
ChihuahuaOP
I'm trying to write a function that checks if the input parameter is included in an array that was calculated using the fetch API.

How do I tell the code that needs to use the data to just wait until it exists??

0 Replies