DEV Community

𝒅3𝒗𝒄44𝒓
𝒅3𝒗𝒄44𝒓

Posted on

New in frontend world

Hello all,
I'm new in this community and I'm developing since last 12 years mainly backend stuff and did a few minor changes in very old frontend frameworks.

In my personal projects I'm now learning new frontend stack like angular, vue and react.

Can anyone please explain how this ngrx store should work in both directions? Let's say some data is loaded into a ngrx store and in the meantime this server data is updated by another client. From my understanding stores are managing a central app state and avoid additional Ajax calls by caching of data. Well, that means from time to time local frontend data is outdated and ngrx store needs somehow be updated.

How is this solved in a professionell web application? Do you implement web sockets, server sent events or something similar to update frontend stores from time to time? Can you give me any helpful hints how this can be achived or what's here state of the art?

Thanks

Top comments (0)