kujiale / tacky Goto Github PK
View Code? Open in Web Editor NEWEnterprise-level front-end framework based on react
Home Page: https://kujiale.github.io/tacky/#/zh-cn/
License: MIT License
Enterprise-level front-end framework based on react
Home Page: https://kujiale.github.io/tacky/#/zh-cn/
License: MIT License
domain.load()
temporary, don't have requirement
for example:
@state('localStorage', 2000)
In some cases, need revoke and restore feature, like web software.
two different action maybe trigger the same view update, for performance, need to provide merge action api, these actions update state in one transcation
delay
merge
race
all
cancel
fork
call
put
take
takeEvery
takeLatest
takeLeading
need to support the following style in typescript
@mutation method = () => {}
@effect method = () => {}
tacky 的状态管理和它的配套工具(dev-tools等)都是自研的,看 Readme 作者是想让它成为一个企业级应用框架,我理解需要做很多事消耗很多时间,而且方向也比较大。我个人觉得最好先定位为状态管理库,完善后再考虑整个企业级框架的东西。
componentDidMount() {
this.unsubscribeHandler = store.subscribe(() => {
this.refreshView();
}, this.componentInstanceUid);
/*
* Trigger action on target component didMount is faster than subscribe listeners.
* TACKY must fetch latest state manually to solve the problems above.
*/
this.refreshView();
}
@effect
async fetch() {
let pendingRequest = API.call(); // promise
this.$update({ isLoading: true });
function autoRun() {
const result = await pendingRequest;
this.$update({ isLoading: false, result });
}
function abort() {
pendingRequest.abort();
}
return {
abort,
autoRun,
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.