Fork me on GitHub
#clojure-uk
<
2017-11-07
>
thomas08:11:37

moin moin morning

yogidevbear09:11:37

Morning 👋

yogidevbear09:11:50

Going into the big smog today

reborg09:11:43

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.

guy11:11:06

@reborg its not exactly like that

guy11:11:29

So people can contribute to the blog any time then we publish them

guy11:11:35

We also ask developers if we can post their content

guy11:11:05

So nothing is there without permission

guy11:11:27

if that makes sense? :thinking_face:

reborg11:11:32

So @guy you asked somebody at uSwitch regarding the transducers article?

guy11:11:47

Me personally no, but yes someone from marketing would have

guy11:11:19

Articles can be removed at any time as well!

guy11:11:26

Just need to contact us and we’re remove it

reborg11:11:28

Apart from that @guy, if you have original content, why republish other stuff? We have planet.clojure for news aggregation already.

guy11:11:08

It’s for Functional programming in general, it also gives a bigger reach to the authors who are not just clojure.

guy11:11:37

:thumbsup:

maleghast14:11:10

Hello everyone… 🙂

maleghast15:11:39

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…

maleghast16:11:02

(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)

maleghast16:11:11

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”?

yogidevbear18:11:28

Dear heavens! The anguish! I'm watching my son and wife playing Super Mario Bros on the wii and they suck! mario-star

yogidevbear18:11:43

It's painful to watch. Painful!

maleghast18:11:24

I am sorry to hear that @yogidevbear 😞