TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Exploration of Redux 0.x

2 点作者 chasontherobot超过 2 年前

1 comment

acemarke超过 2 年前
Very nice bit of archeology!<p>Back in 2017, about a year after I took over as Redux maintainer, I wrote up a post exploring some of how Redux works, its design constraints, and the intended goals and influences:<p>- <a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2017&#x2F;05&#x2F;idiomatic-redux-tao-of-redux-part-1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2017&#x2F;05&#x2F;idiomatic-redux-ta...</a><p>I also wrote a follow-up post explaining why some of the common usage patterns around Redux existed:<p>- <a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2017&#x2F;05&#x2F;idiomatic-redux-tao-of-redux-part-2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2017&#x2F;05&#x2F;idiomatic-redux-ta...</a><p>As part of that work, I did a bunch of research back into the early Redux issues, and took notes on things like the first use of the words &quot;reducer&quot; and &quot;thunk&quot;, how `connect` got its final API design, the intent behind &quot;actions&quot;, and a lot more:<p>- <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;markerikson&#x2F;2971210292a9c65138eeb33ae7d560b0" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;markerikson&#x2F;2971210292a9c65138eeb33a...</a><p>All that said, over the last 3 years we&#x27;ve drastically changed how you write Redux code. Today, &quot;modern Redux&quot; with our official Redux Toolkit package is drastically simpler, and much easier for folks to learn and use. We&#x27;ve rewritten our tutorials from scratch, added a React-Redux hooks API, and even built &quot;RTK Query&quot;, a full data fetching and caching solution built on top of Redux Toolkit:<p>- <a href="https:&#x2F;&#x2F;redux.js.org&#x2F;introduction&#x2F;why-rtk-is-redux-today" rel="nofollow">https:&#x2F;&#x2F;redux.js.org&#x2F;introduction&#x2F;why-rtk-is-redux-today</a><p>- <a href="https:&#x2F;&#x2F;redux.js.org&#x2F;tutorials&#x2F;essentials&#x2F;part-2-app-structure" rel="nofollow">https:&#x2F;&#x2F;redux.js.org&#x2F;tutorials&#x2F;essentials&#x2F;part-2-app-structu...</a><p>I&#x27;ve also written up a few other history&#x2F;archeology-style posts on how React-Redux has evolved over the years, how we designed and built Redux Toolkit, and how we designed the RTK &quot;listener&quot; middleware:<p>- <a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2018&#x2F;11&#x2F;react-redux-history-implementation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2018&#x2F;11&#x2F;react-redux-histor...</a><p>- <a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;10&#x2F;redux-toolkit-1.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2019&#x2F;10&#x2F;redux-toolkit-1.0&#x2F;</a><p>- <a href="https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2022&#x2F;03&#x2F;designing-rtk-listener-middleware&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.isquaredsoftware.com&#x2F;2022&#x2F;03&#x2F;designing-rtk-list...</a><p>So, if anyone is interested in more details on how Redux has evolved, gotcha covered :)