Fork me on GitHub
#reagent
<
2016-03-18
>
shriphani01:03:03

Hi, I am trying to make this simple lifecycle call but nothing happens. Any ideas about what I am doing wrong? https://www.refheap.com/116091

shriphani02:03:37

@mikethompson: you wouldn’t use with-meta - is there a technical reason or is it purely taste ?

gadfly36102:03:20

For me, it is taste - i like how the resulting code looks. I generally have functions called foo-render, foo-did-mount, etc. and then bundled together in foo using a form-3 with create-class.

shriphani02:03:34

ah I am just trying to roll out a small internal site simple_smile

mikethompson02:03:40

For me, it is more than taste. Using the with-meta approach I can't have all my lifecycle function close over the same local state which is necessary in a large number of cases. So, for me, there are both aesthetic and operational reasons for using From3. The with-meta approach really doesn't cut it.

mikethompson02:03:33

@shriphani: be aware that the 3rd link I supplied was specifically about codemirror (which I assume it the real purpose here). The other two were just laying the right foundation.

richiardiandrea21:03:10

guys where can I read more about switching from identical? to equal? in reagent's new version (or old, I have not followed along so closely) ?

richiardiandrea21:03:12

ops, never mind, there is a link in there 😄