mystor / meteor-routecore

Client and server side rendering/routing powered by React
84 stars 6 forks source link

Reactivity while rendering Components #4

Closed mystor closed 10 years ago

mystor commented 10 years ago

Component rendering is currently run within a computation on the client. However, React can re-render the component while not in a reactive computation, which means that using reactive data sources in component methods has inconsistent results.

The component rendering should be probably be non-reactive, and a mixin should be added to enable reactive state within components, in a similar style to react-meteor.

mystor commented 10 years ago

This was mostly solved by wrapping React.createClass() - making the render method run within a reactive computation.