i’ve a multipage application with three pages, called “Dashboard” and “Errorpage”:
Furthermore, there exists one global component DataManager.py (as singleton), which loads, validates and returns the data.
Whenever the users enters the Dashboard, the DataManager is getting callled validate_data(). If validition state has an error (NOK), the user shall be redirected from Dashboard to Errorpage.
The function validate_data() needs to be called after every page visit on /dashboard, since there’s a very frequent data import and errors can occur / go at any time
How can i do this in dash?