Sha256: 4d66746cc0470e853f55696e33f59e3bf1ce46ce34536b07462305c3ddb1fdd7
Contents?: true
Size: 431 Bytes
Versions: 49
Compression:
Stored size: 431 Bytes
Contents
module React module Component module ShouldComponentUpdate def self.extended(base) base.define_singleton_method(:should_component_update?) do |&block| `base.has_custom_should_component_update = true` define_method(:should_component_update) do |next_props, next_state| !!block.call(Hash.new(next_props), Hash.new(next_state)) end end end end end end
Version data entries
49 entries across 49 versions & 1 rubygems