Home / Companies / Algolia / Blog / Post Details
Content Deep Dive

How we reduced boilerplate and handled asynchronous actions with Redux

Blog post from Algolia

Post Details
Company
Date Published
Author
Alexandre Meunier
Word Count
1,131
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

At Algolia, they utilize React and Redux for building complex search UI widgets. They found that setting up conventions is crucial to harnessing the combined potential of these libraries. They use a fractal directory structure and collocate Redux action creators and reducers in the same files, following the Ducks proposal. This allows them to write more modular components with abstracted action creators. To simplify reducer-side code, they created the strongly opinionated createReducer implementation called redux-updeep, which assumes that most actions result in deep updates of the state. They've also developed a middleware called redux-magic-async-middleware to handle asynchronous actions and promises, as well as an eventual-values library to encapsulate and abstract asynchronous value behavior.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 1 32 18 11 +256%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.