san-store:San的申请状态管理

时间:2021-05-17 05:00:04
【文件属性】:
文件名称:san-store:San的申请状态管理
文件大小:279KB
文件格式:ZIP
更新时间:2021-05-17 05:00:04
appstate san JavaScript san-store 框架的官方应用状态管理套件,其理念是类似 flux 的单向流。 虽然应用状态管理已经是流行的理念,我们依然推荐您在开始之前,先看看 ,可能会有些思考和启发。 提示:使用 san-store 需要同时使用 2.x 创建状态变更器,san-store 将使用此变更器更新 store 中的应用状态。 下载 NPM: $ npm i --save san-store san-update 使用 import {store, connect} from 'san-store'; import {builder} from 'san-update'; store.addAction('changeUserName', function (name) { return builder().set('user.name', name); }); let UserNameEd
【文件预览】:
san-store-master
----rollup.config.js(220B)
----src()
--------main.js(772B)
--------flatten-diff.js(809B)
--------connect()
--------store.js(8KB)
--------devtool()
--------parse-name.js(2KB)
----babel.config.js(150B)
----.circleci()
--------config.yml(911B)
----doc()
--------api.md(6KB)
--------why-use.png(73KB)
--------why-use.sketch(128KB)
--------flow.png(35KB)
--------why-use-store.md(4KB)
----example()
--------todos()
----LICENSE(1KB)
----test()
--------parse-name.spec.js(1KB)
--------store.spec.js(17KB)
--------index.html(762B)
--------connect.san.spec.js(23KB)
--------webpack.config.js(500B)
--------lib()
--------karma.config.js(543B)
--------index.js(385B)
--------connect.createConnector.spec.js(12KB)
----README.md(14KB)
----.editorconfig(483B)
----.gitignore(104B)
----CHANGELOG.md(1KB)
----package-lock.json(360KB)
----package.json(1KB)

网友评论