Skip to content

Instantly share code, notes, and snippets.

@flyingmachine
Created July 3, 2015 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingmachine/800eff6e45194e655b59 to your computer and use it in GitHub Desktop.
Save flyingmachine/800eff6e45194e655b59 to your computer and use it in GitHub Desktop.
trying to get CSSTransitionGroup 0.13.3 working with Om 0.8.8
(ns pleasework.app
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(def app-state (atom {}))
(def ctg (-> js/React (aget "addons") (aget "CSSTransitionGroup")))
(defn app [_ owner]
(om/component
(dom/div nil
;; The below call to ctg raises "Uncaught TypeError: Cannot read propert '__reactAutoBindMap' of null
(ctg #js {:transitionName "example"} (dom/div nil "test")))))
(om/root app app-state
{:target (.getElementById js/document "login")})
(ns pleasework.app
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(def app-state (atom {}))
(def ctg (-> js/React (aget "addons") (aget "CSSTransitionGroup")))
(defn app [_ owner]
(om/component
(dom/div nil
;; This doesn't raise an exception but it doesn't add a component
(apply ctg #js {:transitionName "example"} (dom/div nil "test")))))
(om/root app app-state
{:target (.getElementById js/document "login")})
@jackrusher
Copy link

I'm having the same problem with Reagent today. Something much have changed in the underlying library, but at this point I have no idea what.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment