0.5.6 • Published 9 years ago

umc v0.5.6

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

url and middleware based state processor

Combine the express/koa/ums and flux/redux to make a flexible javascript state container. See umc-managed-store for a more safety and robust store.

const store = umc(initialState);
store.use((req, resp, next)=>{
  if(req.url === '/action'){
    console.log(req.body);
    
    let newState = {...};
    return resp.send(newState);
  }
})
store.subscribe((state)=>{
  console.log(state);
})

//...
store.dispatch('/action', params);

License

Licensed under MIT

Copyright (c) 2016 kiliwalk

0.5.6

9 years ago

0.5.5

9 years ago

0.5.4

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.6

9 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago