Concept Flow - Error handling in load
Page request starts
Call load function
Try to fetch data
Return data
Page renders
End
When a page loads, the load function tries to get data. If it works, data is returned and page shows it. If it fails, error is caught and shown instead.
