This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-10
Channels
- # beginners (40)
- # boot (307)
- # boulder-clojurians (2)
- # carry (3)
- # cljs-dev (3)
- # cljsjs (16)
- # clojure (42)
- # clojure-greece (3)
- # clojure-russia (10)
- # clojure-uk (3)
- # clojurescript (116)
- # community-development (1)
- # component (5)
- # conf-proposals (2)
- # core-async (1)
- # crypto (2)
- # cursive (3)
- # devcards (1)
- # events (1)
- # hoplon (123)
- # om (28)
- # onyx (17)
- # pedestal (3)
- # proton (1)
- # re-frame (18)
- # reagent (26)
@peeja just replied to your comment in my post. Happy to discuss anything else here
@anmonteiro Ah, cheers!
Ah right, I forgot to continue that thought 馃檪
what I do is make the top-level div
have that as the react-key
so because the react-key changes, the children of that div will forcibly update
but as I said, it might have bad consequences for local state, I can鈥檛 remember and can鈥檛 really try it out now
maybe
I didn鈥檛 get around to thinking about other solutions, so yours looks interesting
I starred the gist to have a look later, but currently juggling a lot of things
What I posted appears to be working great, but it's liable to break at any React update 馃檪
One thing I鈥檝e been thinking about more and more is to just make Om Next work with any VDOM implementation
but I don鈥檛 really have the time to even start thinking about what it would take to accomplish such thing 馃檪
Any VDOM in particular you're thinking of? I've never worked with any other than React, and I'm not clear what the others have to offer
yeah, I just saw a Cycle.js demo 2 days ago at a conf
looked really cool but I don鈥檛 really know if it would fit Om Next鈥檚 use case
I鈥檝e been thinking about it mostly in the context of people that don鈥檛 really want to bundle React for its size
there are lighter weight impls out there
Yeah, that makes sense. It seems like React has a lot of code to cover uses that Om code never has, being functional
though if you鈥檙e using ClojureScript you probably are OK with a bundle size higher than normal 馃槢
Hey! @anmonteiro, I鈥檝e been using Omify on a project of mine and it seems that the resulting component does not have .-state
set which throws an exception in merge-pending-props!
when Om tries to (gobj/set cst "omcljs$prev$value" prev)
. I looked over the omnify!
macro and it seem鈥檚 there鈥檚 no default present for initLocalState
.
@gardnervickers: that may well be true, omify
is quite dirty at this point, I mostly wanted to prove it could work
Mind opening an issue so we can track that? Thanks!