react-async-states
react-async-states copied to clipboard
Support timeline: keeping track of "some" previous states
The core of the library should be able to keep track of "some" configurable previous states and allow linking them
for example for a giving state, you can tell if it is the current or not, and grab any previous or any next and make it current.
This should push the mental model of the library to another level,
the expected changes although may be start at the State type by introducing the linked behavior
This may be like this:
first you add the necessary configuration:
timeline: {
enabled: boolean,
keepState: (state: State) => boolean,
statesToKeep: boolean, // count of states to keep in the timeline
}
low priority