Performance first

react-state-rxjs thinks that performance is key factor in nowadays mobile-first and desktop applications. So react-state-rxjs is designed to react only when data is mutating. For this reason each component implements shouldComponentUpdate method which default return value changed to false. Component updates only when:

  • state is changed

  • changed default value of shouldComponentUpdate to true by passing true to ComponentState decorator

  • component has explicit shouldComponentUpdate implementation that causes update

Last updated