Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@jackrusher jackrusher commented Jul 20, 2015

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