Closed piotr-oles closed 5 years ago
Hey. Looks neat, but we try to limit stuff in the "Ecosystem" page to libraries that have gained wider adoption or that we particularly recommend.
However, please feel free to submit a PR to add it to the large Redux Addons Catalog at https://github.com/markerikson/redux-ecosystem-links .
Hi everyone! I've created a library called
redux-detector
. Yesterday I've released a stable version 1.0.0 and I would be grateful if we could add this library to the Ecosystem section in the Redux documentation.redux-detector
is a library similar to other side-effect libraries likeredux-saga
orredux-observable
. The difference is thatredux-detector
operates only on state transitions using pure functions. The most common usage is detecting if we enter a given route and then dispatching an action like fetching data. The example:The code above triggers
listCompanies()
action if we enterCOMPANIES_ROUTE
or when we already are onCOMPANIES_ROUTE
and pagination, filters or sorting has been changed. ThelistCompanies
action is a thunk and looks like this:If it sounds interesting for you I will create PR to the docs :)