Skip to content

dryewo/mount-lite-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

Build Status

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 

About

Issue example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published