DEV Community

Discussion on: Frontend store with the state on the elixir backend.

dmarko484 profile image
David Marko

Thanks for your article and library. Can you elabore more on usecases yout library is supposed to be used for?

drozdzynski profile image
Krystian Drożdżyński Author

For example, you can use it on pages with post comments, and on init/2 get the comments from the database and if a someone make a new comment you can update it from the backend with Method Stex.mutate/3, and users which are on this page can see updates instant. Also using methods store.mutate("name", args...) from frontend is faster than using http requests to some backend logic.