Sha256: 81f32bc34abf49d6538e6843b16e88d52056143a5f062d56c7cbb07998b1786c
Contents?: true
Size: 422 Bytes
Versions: 55
Compression:
Stored size: 422 Bytes
Contents
module Volt module Persistors # StoreState provides method for a store to track its loading state. module StoreState # Called when a collection loads def loaded(initial_state = nil) if initial_state @model.change_state_to(:loaded_state, initial_state) elsif !@loaded_state @model.change_state_to(:loaded_state, :not_loaded) end end end end end
Version data entries
55 entries across 55 versions & 1 rubygems