This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-07
Channels
- # bangalore-clj (1)
- # beginners (255)
- # boot (29)
- # cider (16)
- # cljs-dev (13)
- # cljsrn (6)
- # clojure (200)
- # clojure-berlin (1)
- # clojure-dev (13)
- # clojure-dusseldorf (6)
- # clojure-greece (1)
- # clojure-india (1)
- # clojure-italy (1)
- # clojure-russia (33)
- # clojure-spec (28)
- # clojure-uk (27)
- # clojurescript (47)
- # cursive (32)
- # data-science (3)
- # datascript (1)
- # datomic (40)
- # emacs (39)
- # events (4)
- # fulcro (55)
- # graphql (16)
- # immutant (2)
- # luminus (2)
- # lumo (5)
- # off-topic (142)
- # onyx (50)
- # portkey (1)
- # re-frame (45)
- # reagent (80)
- # remote-jobs (2)
- # ring-swagger (3)
- # rum (9)
- # schema (3)
- # shadow-cljs (184)
- # spacemacs (3)
- # test-check (4)
- # unrepl (2)
- # yada (5)
Morning đ
Going into the big smog today
Not sure if anyone else has seen this yet https://functional.works-hub.com/blog/Functional-Programming-Jargon
Seen and I question the practice tho. The content is copy pasted from articles around. There are links to the original sources and article appear to be authored on their blog from the original author.
Apart from that @guy, if you have original content, why republish other stuff? We have planet.clojure for news aggregation already.
Itâs for Functional programming in general, it also gives a bigger reach to the authors who are not just clojure.
Quick question⌠If I create a 3-form component (as was being discussed yesterday) do I need to make sure that I explicitly tear it down, i.e. is there a component-will-unmount that I need to define or something, as I am getting an error going from one state of my app, to another and back again that seems to suggest that Iâve left stuff laying around that I shouldnâtâŚ
(this is all because I needed to use non-React code inside a component in my app, and I got that working very nicely, but being effectively an SPA I was (before including this 3-form component) just over-writing the contents of the target div with the different components I have. Now when I leave the âpageâ that has the 3-form component(s) on it to go âupâ a level in the navigation and then drill down again I get an error that suggests that Iâve left loads of non-React code âlying aboutâ in the react-DOM) Thus:
react-dom.inc.js:17859 Uncaught Error: Objects are not valid as a React child (found: object with keys {options, _container, _leaflet_id, _containerId, _fadeAnimated, _panes, _paneRenderers, _mapPane, _controlCorners, _controlContainer, _onResize, _targets, _events, _handlers, _layers, _zoomBoundLayers, _sizeChanged, _initHooksCalled, zoomControl, attributionControl, boxZoom, doubleClickZoom, dragging, keyboard, scrollWheelZoom, touchZoom, _zoomAnimated, _proxy, _loaded, _zoom, _lastCenter, _size, _pixelOrigin, _firingCount, _layersMaxZoom, _layersMinZoom, _renderer}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of `Leaflet Map - ghana`.
at invariant (react-dom.inc.js:17859)
at traverseAllChildrenImpl (react-dom.inc.js:16578)
at traverseAllChildren (react-dom.inc.js:16606)
at Object.instantiateChildren (react-dom.inc.js:4254)
at ReactDOMComponent._reconcilerInstantiateChildren (react-dom.inc.js:10263)
at ReactDOMComponent.mountChildren (react-dom.inc.js:10302)
at ReactDOMComponent._createInitialChildren (react-dom.inc.js:6114)
at ReactDOMComponent.mountComponent (react-dom.inc.js:5933)
at Object.mountComponent (react-dom.inc.js:11409)
at ReactCompositeComponentWrapper.performInitialMount (react-dom.inc.js:4774)
OK, so I kinda answered this for myself⌠But I still have the warning / Uncaught Error⌠I added a :component-will-unmount which does an unmount-component-at-node based on the react-dom node reference that I have stashed in a ratom⌠Also, I was âdef-ingâ the resultant map object from the :component-did-mount function but I am now putting it into a (different) ratom. The maps now render every time, but I still get the error. I tried rendering the map object by wrapping the ratom deref call in (array âŚ), but that does not work at all⌠Do I need to use the reagent equivalent of âcreateFragmentâ?
Dear heavens! The anguish! I'm watching my son and wife playing Super Mario Bros on the wii and they suck!
It's painful to watch. Painful!
I am sorry to hear that @yogidevbear đ