You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(mount.extensions.autostart/defstateexample:start1)
@example ;; => 1 - works
(mount.extensions.autostart/defstateexample:start1)
@example ;; => java.lang.NullPointerException: Cannot invoke "java.util.concurrent.Future.get()" because "fut" is null
(:state @#'example) => ;; (:state @#'example) #mount.lite.State{..., :sessions nil}
Apparently, evaluating mount.extensions.autostart/defstate the second time loses :sessions atom and the state becomes broken. I've seen this behavior of missing :session before and not only related to autostart extension, but this is the one I can reliably reproduce.
The text was updated successfully, but these errors were encountered:
Sorry for the delay! The fix appears to be working for the example I've given, thank you! I'll wait for the merge and release to validate that the fix works in my real usecases.
Apparently, evaluating
mount.extensions.autostart/defstate
the second time loses:sessions
atom and the state becomes broken. I've seen this behavior of missing:session
before and not only related to autostart extension, but this is the one I can reliably reproduce.The text was updated successfully, but these errors were encountered: