I’ve been tinkering around with bringing express-like middleware to the FE and am excited to show you all what I have come up with. We’ve all see how powerful express middleware is on the backend and I think I’ve built something that could be equally as powerful on the FE.
At a high level, I’ve taken thunks and forced them through a pipeline of express-like middleware functions that allow for a unique way to handle side-effects within a react/redux application.
Things like loaders, automatic caching, optimistic updates, offline detection/queuing, caching timers, polling are all possible by adding middleware to your side-effects.
I’d love to get everyone’s feedback on the overall idea as well as the details of the API. The library is still in its infancy but I’ve already found it incredibly useful for my personal projects.
submitted by /u/qudat