Joe Honton
Sep 2, 2023

--

I've used sessionStorage, localStorage and indexedDB for state management in my uncoupled page-oriented apps (which are similar to the "single SPA" branded apps you're describing).

I've also used customEvent / dispatchEvent within web components to listen for and respond to actions happening somewhere within the same page.

I can't quite see how I could possibly use custom events to store global state. Care to elaborate further, or suggest some reading?

--

--

Joe Honton
Joe Honton

Written by Joe Honton

Princeps geographus, Read Write Tools

No responses yet