Fork me on GitHub

After some bisecting - yeah, it was definitely the switch from alpha46 to alpha47 that changed this behavior in our app. Not sure if that's just because it's exposing a bug in our app (we had some other weird things the transition to 47 exposed with queries not composing up to the root in some cases, maybe this is like that)


Okay - it was because of ^:once - don't know how that never bit us before! Thanks for pointing me in the right direction @adambros. When I tried to fix it earlier with that I think I screwed up how I added it in the macro. (changed to ~(with-meta name {:once true}) instead of ^:once ~name)


yeah i’ve run into that, really annoying


Is it possible to somehow "extend" an om component? Like using polymorphism to inherit some BaseComponent that was defined using defui ?


hi all, in, is there a way to force a re-render of a component, bypassing the render queue? I ask because when using with react-native, controlled TextInputs end up stuttering. I’ve been using react-set-state! to get around this by bypassing’s render loop altogether, but I’m wondering if there’s a better way.


@levitanong (.forceUpdate this) could potentially work


this being the component instance


@anmonteiro I tried it, but it didn’t work 😞 I’m guessing it tries to update before the parser can get around to it?


I’d try to run (.forceUpdate this) inside the mutation, but i don’t think i have access to the component instance from a mutation fn


hrm, there's definitely a :component key in the parser if you transact! from a component


@anmonteiro will give that a go


and i don’t suppose schedule-render! would work 😛


and i’ve taken a look at their flush: At this point I can’t understand what’s going on anymore 😛


@levitanong I'm afraid I don't have substantial React Native experience to help you any further


thanks anyway, @anmonteiro 🙂


@levitanong (om/transact! ..) takes 2 args, one is a component and the rest can be mutates_and_keys_to_be_re-read ... I just figured that out yesterday, it may be germane to what you're doing.