lib/react/state.rb in hyper-store-0.2.0 vs lib/react/state.rb in hyper-store-0.2.1
- old
+ new
@@ -1,8 +1,8 @@
module React
class State
- ALWAYS_UPDATE_STATE_AFTER_RENDER = true
+ ALWAYS_UPDATE_STATE_AFTER_RENDER = Hyperloop.on_client? # if on server then we don't wait to update the state
@rendering_level = 0
class << self
attr_reader :current_observer