Menu
Redux LogoRedux工具包
快速开始教程使用指南APIGitHub(中文)GitHub(English)
🌜
🌞
Redux LogoRedux工具包
  • 快速开始
  • 教程
  • 使用指南
  • API
  • GitHub(中文)
  • GitHub(English)
  • 介绍
    • 快速开始
  • 教程
    • 基础教程
    • 中级教程
    • 高级教程
  • 使用 Redux工具包
    • 使用指南
    • 配合TypeScript使用
  • API 参考
    • Store 安装
      • configureStore
      • getDefaultMiddleware
      • Immutability Middleware
      • Serializability Middleware
    • Reducers 和 Actions
      • createReducer
      • createAction
      • createSlice
      • createAsyncThunk
      • createEntityAdapter
    • 其它
      • createSelector
      • Other Exports

createSelector#

The createSelector utility from the Reselect library, re-exported for ease of use.

For more details on using createSelector, see:

  • The Reselect API documentation
  • React-Redux docs: Hooks API - Using memoizing selectors
  • Idiomatic Redux: Using Reselect Selectors for Encapsulation and Performance
  • React/Redux Links: Reducers and Selectors

Note: Prior to v0.7, RTK re-exported createSelector from selectorator, which allowed using string keypaths as input selectors. This was removed, as it ultimately did not provide enough benefits, and the string keypaths made static typing for selectors difficult.

Previous
« createEntityAdapter
Next
Other Exports »

文档

  • 快速开始
  • 教程
  • 使用指南
  • API参考

社区

  • Stack Overflow
  • Discord
  • Redux工具包 中文文档

更多

  • GitHub
  • GitHub(中文文档)
  • 由Netlify部署
Redux Logo
Copyright © 2015–2022 Dan Abramov and the Redux documentation authors. 中文由[DeerTeam]团队翻译制作。