Recursively chain states together.
SimonRichardson opened this issue · 0 comments
SimonRichardson commented
Currently in the defender value it calls unsafePerform
to extract the value, which isn't very lazy. In fact the state should be chained to the main state and call only when required.
https://github.com/SimonRichardson/defender/blob/master/src/defender.js#L32
This would help with readability.