Basically im trying to fetch some data from my API but it doesn't work unless i touch the page, like i need to just click/touch anything on the page for it to send the request/fetch the data and display it, i made a default variable result that is null, so it shows null until i touch the screen. The bigger issue is, a page that requires the data without me touching anything, won't show the data and ill have an error.
API Call Fails on PageLoad
Database & APIs
i tried changing the way i send the requests, i tried searching but nothing worked for me
Yes
2
10 replies