about adapter, I think event system(like reudx) is more decoupled and simple than it. the application layer just receive and dispatch events, don't care anything else .
Adapters are needed to connect 3rd-party services to the app in a decoupled way.
Redux solves the problem with decoupling components, but it won’t help to connect server fetching API or reading from localStorage.
localStorage
In fact, it even needs its own adapter to avoid using Redux’s injector-hooks everywhere in the app since it itself is a 3rd-party module.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
about adapter, I think event system(like reudx) is more decoupled and simple than it.
the application layer just receive and dispatch events, don't care anything else .
Adapters are needed to connect 3rd-party services to the app in a decoupled way.
Redux solves the problem with decoupling components, but it won’t help to connect server fetching API or reading from
localStorage
.In fact, it even needs its own adapter to avoid using Redux’s injector-hooks everywhere in the app since it itself is a 3rd-party module.