Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 1.96 KB

README.md

File metadata and controls

13 lines (12 loc) · 1.96 KB

Bang Lifecycle

  • Search value is submit via BangInput
  • Keyboard input dispatch SET_SEARCH_VALUE action
  • The action trigger sdkQueryValueEmitter saga effect for push search value in their consumers with SearchProvider.query
  • The forked sdkSearchProvider effect (run in background) transform results and query RxJS subscriptions into a Saga events source using channels
    • Each time that results are received, we send them into produceResults for a suit of data manipulations:
    • Organized results are dispatched with SET_SEARCH_RESULTS action
    • Dispatching a SET_SEARCH_RESULTS action will update state.bang.results
    • Modifying state.bang.results will trigger a rerender of the BangList component