redux_dev_tools
Dart Redux 的时间旅行开发工具
Dart Redux 的时间旅行开发工具
以下为英文项目原文快照,最新内容请访问 GitHub。
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:
A simple Flutter app that allows you to Increment and Decrement a counter.
// 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);
All of this code was directly inspired by the original Redux Devtools.
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗