I have a multi-page app that uses pattern-matching callbacks on each page to update filters, add plots, etc. I am looking for a SIMPLE way to ‘store’ the ‘layout’ of each page as they change. So when I’m navigating between pages and when I restart my app it represents the latest state.
I know I need a ‘store_layout’ and ‘get_layout’ callback within each page. To keep the code simple, I’d like the callbacks to be same across all pages (ie. not explicitly callout all ‘inputs’ by page). If the layout changes, update the ‘stored’ layout.
Is it possible to ‘store’ the dash.page_registry object which contains the ‘layout’ for each page.