olslash / cmdv.io

a revision-tracking pastebin service
8 stars 1 forks source link

Asking some questions about immutable-js #1

Open tiye opened 9 years ago

tiye commented 9 years ago

Hi, I was looking for demos of using immutable-js in realworld projects and I found this. Quite amazing. I searched a lot on the Web but your code is currently the only good result I got. Could you give some advices on using immutable-js, and where can I found more examples when I want to use immutable-js in React?

Currently I'm working on a React based project (https://talk.ai/site/en/ , @teambition.) and want to learn more about scaling Flux in large scale Web apps.

Thanks.

olslash commented 9 years ago

Thanks for the kind words. This project obviously isn't complete or even really functional yet, and it's my first stab at figuring out how a nontrivial flux app might look.

Haven't seen any other examples really, but I'm using Immutable because I think immutable collections complement the data flow in Flux really well. Right now it's barely implemented, but my plan is to use cursors more or less like described in http://open.bekk.no/easier-reasoning-with-unidirectional-dataflow-and-immutable-data. Should be pretty cool and also make the render process really efficient.

Would love to check out your progress as you work on your app-- Flux is pretty young so its great to see people thinking through new ways to use it.

Cheers!