0.5.6 • Published 8 years ago

umc v0.5.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.6

8 years ago

0.4.5

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago