搜索插件、代码仓与 APP 分类

GitHub 代码仓brianegan/redux_dev_tools

redux_dev_tools

Dart Redux 的时间旅行开发工具

redux_dev_tools 项目封面
星标
9
复刻
5
最近推送(UTC)
2021年3月20日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

redux_dev_tools

Build Status codecov

A Redux Store with a Delorean.

This library allows you to create a DevToolsStore during dev mode in place of a normal Redux Store. This DevToolsStore will act exactly like a normal Store at first, with one catch: It will allow you to travel back and forth throughout the State of your application!

You can write your own UI to travel in time, or use one of the existing options for the platform you're working with:

Demo

Flutter

A simple Flutter app that allows you to Increment and Decrement a counter.

A screenshot of the Dev Tools in Action

Usage

// Start by creating a simple Reducer, or a complex one. Dealer's choice. :)
int addOneReducer(int state, action) => state + 1;

// For production mode, this is how you should create your Store.
final store = Store(addReducer, initialState: 0);

// In Dev Mode, however, if you want to hook up to Time-Traveling 
// Dev Tools, create a `DevToolsStore` instead!
//
// It will act exactly like your normal Store, but give you super powers
// to travel back and forth in time throughout your app States!
// 
// Remember: By itself this will beef up your Store, but will not provide
// a UI to Time Travel. See the libraries listed above to learn how to
// connect your Redux store to a UI! 
final store = DevToolsStore(addReducer, initialState: 0);

Credits

All of this code was directly inspired by the original Redux Devtools.

Brian Egan GitHub avatar
GitHub 作者

Brian Egan ↗

Montana boy living in the UK.

Lake District, UK官方网站 ↗
语言Dart

分类

此仓库发布的插件

使用的依赖

依赖清单 4 项

  • redux>=5.0.0 <6.0.0
  • pedantic开发依赖>=1.11.0 <2.0.0
  • coverage开发依赖>=1.0.1 <2.0.0
  • test开发依赖>=1.16.8 <2.0.0

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗