Example of mount-lite 2.0.0 behavior when starting parts of the system (for aroemers/mount-lite#15).
Let's assume we have these states:
+-- state1
base <--+
+-- state2
state1 and state2 both depend on base, but not on one another.
According to this docs section, mount-lite can start only the states that the specified state depends on:
(m/start #'state1)
; => [#'base #'state1]
(m/start #'state2)
; => [#'base #'state2]In practice, however, the following happens: for one of the states the behavior is correct:
(m/start #'state1)
; => [#'base #'state1]and for the other one all the states are started, even those not required:
(m/start #'state2)
; => [#'base #'state1 #'state2] ;; #'state1 shouldn't have been started