Skip to content

Commit

Permalink
Fix compiler warnings from dom ns.
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Sep 29, 2023
1 parent ca1f2ef commit 89bbd65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/com/fulcrologic/fulcro/dom.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
(defn ^:deprecated render-to-str
"This fn is outdated - it expects js/ReactDOMServer to be defined (used to be provided cljsjs.react.dom.server).
It is better to do it yourself (under shadow-cljs):
```clj
(ns ex (:require [\"react-dom/server\" :as react-dom-server] ...))
(react-dom-server/renderToString c)
Expand All @@ -86,7 +86,7 @@
"Returns the dom node associated with a component's React ref."
([component]
(react.dom/findDOMNode component))
([component name]
([^js component name]
(some-> (.-refs component) (gobj/get name) (react.dom/findDOMNode))))

(def Input
Expand Down Expand Up @@ -137,7 +137,7 @@

(defn- update-state
"Updates the state of the wrapped input element."
[component next-props value]
[^js component next-props value]
(let [on-change (gobj/getValueByKeys component "state" "cached-props" "onChange")
next-state #js {}
inputRef (gobj/get next-props "inputRef")]
Expand Down

0 comments on commit 89bbd65

Please sign in to comment.