zetachang / react.rb

Opal Ruby wrapper of React.js library.
http://reactrb.org/
MIT License
547 stars 35 forks source link

Observer free code path for state #136

Open wied03 opened 8 years ago

wied03 commented 8 years ago

For those of us that use the GrandCentral/Redux approach and keep most state outside the component, we don't want to hit any Observable code for any incidental state calls. I'm assuming that any Observable code remains light to keep file sizes down.

ajjahn commented 8 years ago

@wied03 I agree that observable state shouldn't be required. This could be addressed in the state definition by passing an option. Not sure if it should be opt in or opt out, but I like declaring it for the purpose of having self documenting components.

sollycatprint commented 8 years ago

This issue was moved to reactrb/reactrb#136