Sha256: 19ca1e5c9259f7aac4c12609e47a77fef8bfd2303a7a984f388aed894af63a09

Contents?: true

Size: 479 Bytes

Versions: 39

Compression:

Stored size: 479 Bytes

Contents

module Isomorfeus
  class << self
    attr_reader :store_initialized
    attr_reader :store

    def init_store
      return if store_initialized
      @store_initialized = true
      force_init_store!
    end

    def force_init_store!
      # at least one reducer must have been added at this stage
      # this happened in isomorfeus-react.rb, where the component reducers were added
      @store = Redux::Store.init!
      `Opal.Isomorfeus.store = #@store`
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
isomorfeus-redux-4.2.0 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.18 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.17 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.16 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.15 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.14 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.13 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.12 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.11 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.10 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.9 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.8 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.7 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.6 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.5 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.4 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.3 lib/isomorfeus/redux/config.rb
isomorfeus-redux-4.1.2 lib/isomorfeus/redux_config.rb
isomorfeus-redux-4.1.1 lib/isomorfeus/redux_config.rb
isomorfeus-redux-4.1.0 lib/isomorfeus/redux_config.rb