aza
A redux/react-redux/redux-immutable/react-router packs for building store and routers in react-apps.
Last updated 8 months ago by lisd1990 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aza 
SYNC missed versions from official npm registry.

1. 概述

我们对react16/redux/redux-sage/immutable/redux-immutable/redux-persist/react-router(v4)使用了多个项目后发现,一个高可用、多配置的前端框架很是需要,为了从框架中增加更多对immutable的支持以及对准确loading的控制,我们搭建了这个框架。

其中model的书写习惯部分参考了dvajs的书写习惯,我们还在其中新增了以下几个功能

  • 对subscription进行了拓展,支持onLocalStorage、OnXXXX等浏览器监听
  • 监听request中fetch的状态码,可在subscription中配置{request:"401",dispatch:"XX/XX"} 更方便对错误监听
  • 对react-router v4中,history不支持HashRouter的问题进行了优化,支持了自动在redux中添加routing
  • 全面支持Immutable,目前这个是默认开启的
  • 支持持久化存储,自定义persist,可选择您需要的namespace自定义是否长期存储
  • 支持清空store方法:dispatch({type:"clear/all"})(后期将会添加更多配置来丰富这个功能) (注意:clear方法不会清空routing和loading中的内容,这样可以保证你的应用还可以获取routing和loading状态)
  • 支持redux-sage的全套方法
  • 支持redux-saga-test-plan中的测试流程

2. 适用场景

  • 复杂的桌面应用
  • 需要持久化应用数据的应用
  • 需要immutable不可变数据的应用
  • 需要引入react16版本新特性的应用
  • 需要易于测试或TDD开发的应用
  • 需要多个复杂加载状态控制的应用

Peer Dependencies: react 16 和 react-dom 16

3. 文档地址

查看aza在线文档

Current Tags

  • 1.0.27                                ...           latest (8 months ago)

27 Versions

  • 1.0.27                                ...           8 months ago
  • 1.0.26                                ...           8 months ago
  • 1.0.25                                ...           9 months ago
  • 1.0.24                                ...           9 months ago
  • 1.0.23                                ...           9 months ago
  • 1.0.22                                ...           9 months ago
  • 1.0.21                                ...           9 months ago
  • 1.0.20                                ...           9 months ago
  • 1.0.19                                ...           9 months ago
  • 1.0.18                                ...           9 months ago
  • 1.0.17                                ...           10 months ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |