Created
July 3, 2015 16:28
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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")}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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")}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.