lexfro / slt Goto Github PK
View Code? Open in Web Editor NEWTake care of your state
License: MIT License
Take care of your state
License: MIT License
We need a "master" context which will be the context which could be defined as a main user context, associated with current user action. It should be selected automatically (by the first "set" call) and also there should be a way to force it (in case of redirects, for example.) The property of "masterness" will be used to handle conflicts and race conditions: the master context should be the king when in the merge.
If you still interested in achieving Realy-like functionality check this. I highly need help.
We need a way to flush the current Optimistic state to the app.
The main goal of Slots is to provide simplicity and familiarity to isomorphic app development. This is why the default set strategy is gust deep merge. So if we have the request
map in the state, and it have, say the body
key, if we call Slots.set("request", {url: url}) it will merge the {url: url} into current request
map. Sometimes we desire to override this default behavior. This is why we need to provide a way to specify this strategy manually. It will be 2 ways how to do it: you will able to set it in the rules and also it will be possible to specify it directly using third parameter of the set method.
With Slots
user is able to set
what he want to get
it. We need to specify a way to handle events (changes) from outside world (from web socket) and make the state to be consistent with the "World" at any point of time.
We need to support Observables and Generators as well as Promises (implemented) and node-style APIs.
Can you provide an example app? Its no really clear how to use your tool. Suppose TodoApp would be nice.
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.