Skip to content

Commit

Permalink
Merge tag '0.0.18' into develop
Browse files Browse the repository at this point in the history
   0.0.18
  • Loading branch information
awkay committed Nov 22, 2018
2 parents 97471ca + 7bf0c09 commit 5c07ee1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
0.0.18
------
- Fixed a race condition on React lifecycles when using state machines that could lose loads.
- Added

0.0.17
------
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject fulcrologic/fulcro-incubator "0.0.18-SNAPSHOT"
(defproject fulcrologic/fulcro-incubator "0.0.18"
:description "Tools for Fulcro apps"
:url "https://github.com/fulcrologic/fulcro-incubator"
:license {:name "MIT" :url "https://opensource.org/licenses/MIT"}
Expand Down
10 changes: 9 additions & 1 deletion src/main/fulcro/incubator/ui_state_machines.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,16 @@
::load-options options}
component-class (assoc ::prim/component-class component-class))))))

(Defn apply-action
(defn apply-action
"Run a mutation helper function (e.g. a fn of Fulcro state)."
[env mutation-helper & args]
[::env fn? (s/* any?) => ::env]
(apply update env ::state-map mutation-helper args))

(defn get-active-state
"Get the name of the active state for an active state machine using a component."
[this asm-id]
(-> (prim/component->state-map this)
::asm-id
(get asm-id)
::active-state))

0 comments on commit 5c07ee1

Please sign in to comment.