Tim Deschryver 12/3/2018

Keeping browser tabs in sync using localStorage, NgRx, and RxJS

Read Original

This article provides a detailed guide on keeping an application's state synchronized when a user has multiple browser tabs open. It explains two approaches—syncing actions or syncing state—and implements a solution using the Web Storage API (localStorage), NgRx Store and Effects, and RxJS observables. The tutorial includes code examples for intercepting and storing actions to rebuild state predictably across tabs.

Keeping browser tabs in sync using localStorage, NgRx, and RxJS

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser