pecus’s avatarpecus’s Twitter Archive—№ 4,995

    1. …in reply to @MichaelThiessen
      @MichaelThiessen @vuejs State in an application (including VueJs) refers to the current value of everything that influences the application behavior. Ideally, a state should set the app in a predictable replicable condition. It is possible to have a state without a state manager (like Vuex)
  1. …in reply to @pecus
    @MichaelThiessen @vuejs So I would generalize to: state is a dataset that coerces your app in a “specific arrangement”. A state should set every input and presentation element to a specific condition, every time it is applied. Components data and props should basically depend on state.
    1. …in reply to @pecus
      @MichaelThiessen @vuejs In VueJs most people would assume that state is a specific instance of a Vuex store. I would consider this way too specific of an implementation but YMMV