Skip to content

Commit

Permalink
Generate css-in-context only in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarzka committed May 30, 2020
1 parent 83f3475 commit be5a942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljc/stylefy/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[stylefy.impl.state :as state]
[stylefy.impl.styles :as impl-styles]))

(def ^:dynamic css-in-context (atom nil))
#?(:clj (def ^:dynamic css-in-context (atom nil)))

(defn use-style
"Defines a style for a component by converting the given style map in to an unique CSS class,
Expand Down

0 comments on commit be5a942

Please sign in to comment.