Integrating Mithril localStorage backup with route state restoration and integrity verification
The goal is to restore a Mithril application’s UI state from a JSON backup stored in localStorage while simultaneously re‑establishing the current route and ensuring that the recovered data has not been corrupted. Developers must work within the ~5 MB origin limit of localStorage, avoid a flash of stale UI before the backup is applied, and perform integrity