RepositoryJavaScriptJPNhật Bản
kuy

kuy/redux-tower

Saga powered routing engine for Redux app.

153sao
10fork
18issue
1lượt xem

🚀 Định tuyến Redux được vận hành bởi Saga

redux-tower — engine định tuyến client-side dành cho ứng dụng Redux, cho phép bạn kiểm soát hoàn toàn quy trình chuyển trang và các tác vụ phụ trợ như gọi API, xác thực...

redux-tower không chỉ là một bộ chuyển đổi component như react-router. Nó dựa trên redux-saga để thực thi các luồng điều khiển bất đồng bộ ngay khi một URL được kích hoạt. Dự án hướng tới sự tích hợp sẵn nhưng dễ thay thế, phù hợp với tư duy của Redux.

✨ Điểm nổi bật

  • Saga powered: Dùng redux-saga thay thế cho vòng đời component để điều khiển routing.
  • Side effect tùy biến: Hỗ trợ fetch dữ liệu, xác thực, hoạt ảnh... trước khi hiển thị trang.
  • Shorthand thông minh: Dùng cú pháp ngắn gọn để chuyển component hoặc chuyển hướng.
  • Tham số URL linh hoạt: Hỗ trợ tham số có tên và query string trong định nghĩa route.
  • Tích hợp sẵn: Đi kèm reducer, saga và component Router để dễ dàng thêm vào dự án Redux.
  • Hỗ trợ nested routes: Định nghĩa route lồng nhau một cách trực quan.

💡 Vì sao đáng chú ý

Khác với react-router chỉ là công cụ chuyển đổi component, redux-tower cho phép bạn can thiệp vào toàn bộ quy trình routing thông qua saga. Điều này giúp xử lý các logic phức tạp như kiểm tra quyền truy cập hoặc tải dữ liệu trước khi render trang một cách tự nhiên và có kiểm soát.


#Redux #redux-saga #SPA #Routing #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
redux-saga/redux-saga

An alternative side effect model for Redux apps

22.4k
Nov 29, 2026
RepositoryJavaScript
react-boilerplate/react-boilerplate

🔥 A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

29.4k
Mar 23, 2023
RepositoryJavaScript
dvajs/dva

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)

16.1k
Aug 6, 2025
RepositoryJavaScript
Th3Wall/Fakeflix

Not the usual clone that you can find on the web.

4.9k
Jan 16, 2024
RepositoryJavaScript
keajs/kea

Batteries Included State Management for React

2.0k
Jul 15, 2026
RepositoryTypeScript
TanStack/router

🤖 A client-first, server-capable, fully type-safe router and full-stack framework for the web (React and more).

15.4k
Dec 1, 2026
RepositoryPHP
symfony/routing

Maps an HTTP request to a set of configuration variables

7.6k
Nov 25, 2026
RepositoryPHP
klein/klein.php

A fast & flexible router

2.7k
Jan 30, 2024
RepositoryJava
freerouting/freerouting

Advanced PCB auto-router

2.3k
Dec 1, 2026