RepositoryTypeScript
reduxjs

reduxjs/reselect

Selector library for Redux

19.0kstars
670forks
21issues
3views

🚀 Reselect — Selector memoization cho Redux

Thư viện tạo selector đã được memoization, giảm tính toán lại không cần thiết.

Reselect là thư viện TypeScript tạo các hàm selector đã được memoization. Dùng phổ biến với Redux, nhưng cũng hỗ trợ bất kỳ dữ liệu bất biến nào. Selector tính toán dữ liệu phái sinh, giúp Redux lưu trữ trạng thái tối thiểu.

✨ Điểm nổi bật

  • Selector memoization: Không tính toán lại trừ khi đối số thay đổi
  • Composable selectors: Selector có thể dùng làm đầu vào cho selector khác
  • Tích hợp Redux Toolkit: Được bao gồm sẵn, không cần cài thêm
  • createSelector API: Tạo selector từ input selectors và result function
  • Reference equality: Trả về cùng tham chiếu nếu không tính toán lại, tối ưu React-Redux
  • Tùy biến memoization: Hỗ trợ memoize và argsMemoize tùy chỉnh qua createSelectorCreator

💡 Vì sao đáng chú ý

Reselect khác biệt bằng cách tránh tính toán lại hoàn toàn khi dữ liệu đầu vào không thay đổi. Điều này rất quan trọng cho các ứng dụng lớn nơi việc lọc hoặc tính toán dữ liệu phứt phức có thể gây chậm. Kết hợp với React-Redux, selector memoization giúp UI chỉ cập nhật khi thực sự cần thiết.


#Redux #TypeScript #Memoization #Selectors #ReactRedux #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
reduxjs/redux

A JS library for predictable global state management

61.4k
Nov 24, 2026
RepositoryTypeScript
pmndrs/zustand

🐻 Bear necessities for state management in React

59.0k
Nov 23, 2026
RepositoryTypeScript
responsively-org/responsively-app

A modified web browser that helps in responsive web development. A web developer's must have dev-tool.

25.6k
Nov 23, 2026
RepositoryTypeScript
reduxjs/react-redux

Official React bindings for Redux

23.4k
Nov 26, 2026
RepositoryTypeScript
endograph/redux-persist

persist and rehydrate a redux store

13.0k
Nov 3, 2026
RepositoryTypeScript
Automattic/wp-calypso

The JavaScript and API powered WordPress.com

12.7k
Nov 24, 2026
RepositoryTypeScript
ngrx/platform

Reactive State for Angular

8.3k
Nov 25, 2026
RepositoryTypeScript
ngxs/store

🚀 NGXS - State Management for Angular

3.5k
Nov 26, 2026
RepositoryTypeScript
edrlab/thorium-reader

A cross platform desktop reading app, based on the Readium Desktop toolkit

3.0k
Nov 26, 2026