Skip to content

Within a Store class level initialize methods should be called on boot #402

Closed
@catmando

Description

@catmando

i.e.

class Store
  include Hyperstate::State::Observable 
  class << self 
    def initialize
      # initialize state here (just like you would for an instance)
    end
    def other_method
    ...
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions