Skip to content

Commit

Permalink
helix.core: rewrite symbol so that exists? emits correct code (#137)
Browse files Browse the repository at this point in the history
Fixes #136
  • Loading branch information
rome-user committed May 18, 2023
1 parent 68c7d38 commit fb542a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helix/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@
`type` is the component function, and `id` is the unique ID assigned to it
(e.g. component name) for cache invalidation."
[type id]
(when (exists? (.-$$Register$$ js/window))
(.$$Register$$ js/window type id)))
(when (exists? js/window.$$Register$$)
(js/window.$$Register$$ type id)))


(defn signature! []
;; grrr `maybe` bug strikes again
(and (exists? (.-$$Signature$$ js/window))
(.$$Signature$$ js/window)))
(and (exists? js/window.$$Register$$)
(js/window.$$Signature$$)))

0 comments on commit fb542a9

Please sign in to comment.