After doing a lot of brainstorming, I finally found a simple hack to fix the empty ongoing list issue.
Just by adding a timeout of 3 seconds before rendering the home page, the cheerio and request functions are able to load the data completely before being passed to the frontend script.
Linked issue: #10
After doing a lot of brainstorming, I finally found a simple hack to fix the empty ongoing list issue. Just by adding a timeout of 3 seconds before rendering the home page, the cheerio and request functions are able to load the data completely before being passed to the frontend script.