Buscar pacotes, repositórios e categorias de apps

Repositório GitHubbrianegan/redux_dev_tools

redux_dev_tools

Ferramentas de desenvolvedor de viagem no tempo para Dart Redux

Capa do projeto redux_dev_tools
Estrelas
9
Forks
5
Último push (UTC)
20 de mar. de 2021
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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
Autor no GitHub

Brian Egan ↗

Montana boy living in the UK.

Lake District, UKSite oficial ↗
LinguagensDart

Categorias

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 4 itens

  • redux>=5.0.0 <6.0.0
  • pedanticDesenvolvimento>=1.11.0 <2.0.0
  • coverageDesenvolvimento>=1.0.1 <2.0.0
  • testDesenvolvimento>=1.16.8 <2.0.0

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

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

GitHub Docs — About repositories ↗