jimsparkman / RiotControl

Event Controller / Dispatcher For RiotJS, Inspired By Flux
http://jimsparkman.github.io/RiotControl/routing_demo/
MIT License
598 stars 48 forks source link

Next version #23

Open jimsparkman opened 9 years ago

jimsparkman commented 9 years ago

I've rewritten the underlying foundation to remove the dependency on riotjs observable, and it's honestly more generic pub/sub and hopefully a bit easier to understand. I'm hesitant to push this out because people may be relying on the existing API. Anyone with strong opinions?

a-moses commented 9 years ago

Hello @jimsparkman First of all it is sound very good ! be optimist :)

I'm suggest you just publish the "Next version" on different branch (like your maser and gh-pages) with Alfa or Beta version label.

very important to add a good documentation and example .

after plays with the next version more users could tell what they thinking about more recently

Thank You !

avanslaars commented 9 years ago

I think tagging it and being sure to call out the differences between versions with a strong warning would be safe. That being said, with the more generic application that comes without the Riot dependency, have you considered that maybe this could be seen as a new library with a forked repo, new name, etc. whatever you decide, I'm looking forward to seeing the new version.

duongphuhiep commented 9 years ago

so you will make this pub/sub generic? please show some codes as @a-moses suggestion

jimsparkman commented 9 years ago

I'll intro this in a new branch and post back here when I've got some samples together. Thanks much.

a-moses commented 9 years ago

:+1:

@jimsparkman

r4j4h commented 9 years ago

All that said, I am excited to see it when finished! :) :+1:

jimsparkman commented 8 years ago

I pushed a WIP to a dev branch.

I backpedalled from an initial approach, and turned towards an alternative multi-threaded solution. The API won't be that different in the end, the only difference in the demo was how the store is written. I didn't touch the riot.js view logic.

Stores are automatically launched in separate threads, which encapsulates them from direct access. Also allows for computation off the main UI thread.

This forces a flux-like pattern: user input -> view triggers event -> store(s) do work -> store(s) trigger event -> view updates

sandrokeil commented 8 years ago

This forces a flux-like pattern: user input -> view triggers event -> store(s) do work -> store(s) trigger event -> view updates

@jimsparkman I like this approach. Any news on this?