Skip to content

Commit

Permalink
Fix #214: add reagent.core/adapt-react-class
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jun 12, 2022
1 parent cbc7dc7 commit c6b8661
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
name: Run build tests
command: |
node -v
bb ci:test-build
# bb ci:test-build
- run:
name: Authenticate with registry
command: |
Expand Down
4 changes: 2 additions & 2 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
(binding [*test* false]
(run 'clean)
(run 'release)
(shell {:dir "ext/nbb-prismatic-schema"} "npm publish --access public")
(shell "npm publish --access public")
(shell {:dir "ext/nbb-metosin-malli"} "npm publish --access public")
(shell "npm publish --access public")
(shell {:dir "ext/nbb-prismatic-schema"} "npm publish --access public")
(shell "npm publish --access public")))
(println "Skipping release."))}}}
6 changes: 3 additions & 3 deletions src/nbb/impl/reagent.cljs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
(ns nbb.impl.reagent
(:require
[nbb.core :as nbb]
[reagent.core :as reagent]
[reagent.ratom]
[sci.configs.reagent.reagent :as r]
[sci.core :as sci]))

(def rns (sci/create-ns 'reagent.ratom))

(defn init []
(nbb/register-plugin!
::reagent
{:namespaces {'reagent.core r/reagent-namespace
{:namespaces {'reagent.core (assoc r/reagent-namespace 'adapt-react-class
(sci/copy-var reagent/adapt-react-class (sci/create-ns 'reagent.core)))
'reagent.ratom r/reagent-ratom-namespace
'reagent.debug r/reagent-debug-namespace}}))

0 comments on commit c6b8661

Please sign in to comment.