rockerest’s avatarrockerest’s Twitter Archive—№ 16,604

      1. …in reply to @schizanon
        @yesiwebto Nah injection from a parent scope is still the same control. In my mind, inverted control here comes from components _asking_ for what they need. The simple way might be calling an async function to get state, but I'd advocate for a transactional message bus.
    1. …in reply to @rockerest
      @yesiwebto i.e.: Component emits a message requesting state chunk X, some unrelated handler responds to that request with a response message using the same transaction ID. The component is directly responsible for loading its own state (stored somewhere sane, unlike Flux).
  1. …in reply to @rockerest
    @yesiwebto "Unrelated handler" here is "unrelated to the component" but definitely - almost certainly - related to fetching state - maybe even just that specific chunk of state.