4 ms·
Show HN: Web-redux: running reducer and selector on the server
- aabbcc1241 5y agoweb-redux is a full-stack variant redux library that runs reducers and selectors on the server. So you don't have to write APIs twice [1] [1] We often write the API once in the server code, and once more in client sdk (or at least some code doing ajax with url and http headers). The url of each APIs are written twice and needed to be maintained manually (without the help of static type checking)
- acemarke 5y agoHuh, neat. Out of curiosity, have you considered using our official Redux Toolkit package as part of the server implementation? https://redux-toolkit.js.org https://redux-toolkit.js.org
- aabbcc1241 5y agoThe design of web-redux is heavily inspired by the design and documentation of the official redux. But the offical one seems more complicated than what I need at the moment. Will look at it again to see any aspects I'm missing :)