Skip to content

Commit

Permalink
Fix issue #18
Browse files Browse the repository at this point in the history
  • Loading branch information
luciodale committed Sep 8, 2020
1 parent f252ae5 commit b121e4f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -33,7 +33,7 @@ As at this state you must be dying of curiosity, I will dive right into the impl
#### In Deps

```clojure
fork {:mvn/version "2.2.0"}
fork {:mvn/version "2.2.1"}
```

or
Expand Down
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject fork "2.2.0"
(defproject fork "2.2.1"
:description "Reagent & Re-Frame form library"
:url "https://github.com/luciodale/fork"
:license {:name "MIT"}
Expand Down
5 changes: 4 additions & 1 deletion src/fork/re_frame.cljs
Expand Up @@ -85,7 +85,10 @@
:server-dispatch-logic
#(rf/dispatch [::server-dispatch-logic config path])})))
:reset (fn [& [m]]
(reset! state (merge {:values {} :touched #{}} m))
(reset! state (merge (when (:keywordize-keys props)
{:keywordize-keys true})
{:values {} :touched #{}}
m))
(rf/dispatch [::clean path]))}]
(r/create-class
{:component-did-mount
Expand Down
5 changes: 3 additions & 2 deletions src/fork/reagent.cljs
Expand Up @@ -69,8 +69,9 @@
:state state
:server-dispatch-logic
#(server-dispatch-logic state config path)})))
:reset (fn [& [m]] (reset! state (merge {:values {}
:touched #{}}
:reset (fn [& [m]] (reset! state (merge (when (:keywordize-keys props)
{:keywordize-keys true})
{:values {} :touched #{}}
m)))}]
(r/create-class
{:component-did-mount
Expand Down

0 comments on commit b121e4f

Please sign in to comment.