Method: Hyperstack::Internal::State::Mapper.delay_updates?
- Defined in:
- lib/hyperstack/internal/state/mapper.rb
.delay_updates?(object) ⇒ Boolean
determine if updates should be delayed. always delay updates if the bulk_update_flag is set otherwise delayed updates only occurs if Hyperstack.on_client? is true WITH ONE EXCEPTION: observers can indicate that they need immediate updates in case that the object being updated is themselves.
209 210 211 212 213 |
# File 'lib/hyperstack/internal/state/mapper.rb', line 209 def delay_updates?(object) @bulk_update_flag || (Hyperstack.on_client? && (@immediate_update != @current_observer || @current_observer != object)) end |