incepter / react-async-states

A Multi-Paradigm React State Management Library

Home Page:https://incepter.github.io/react-async-states/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Devtools optimizations

incepter opened this issue · comments

Creation path

  • Separate all creation paths of async state and display it in devtools: createSource, a hook, provider, intermediate (props.runp)

Lanes

  • lanes should be attached to the parent, and so grouped. The grouping must be just one level deep. deeper lanes will get flattened.

Producer effects

  • props.run and props.runp may create an async state. This async state should not be visible in the devtools in the left side bar. May be it should be visible somehow related to the "run" journal event

Subscriptions

  • useAsyncState, useSource and useProducer must all define a unique reusable subscription key (better if it has something related to component)

don't forget #53

Done in #103 and #104