Fork me on GitHub
#rum
<
2017-09-14
>
danielstockton12:09:34

Can I prevent a reactive component from updating on certain local state changes?

danielstockton12:09:42

I don't seem to have should-update on the reactive components.

danielstockton14:09:32

That's exactly what I did, created an atom outside the component. Seems hacky but did the trick.

martinklepsch14:09:04

@danielstockton you can still use rum’s local state mixin, just don’t use rum.core/react

danielstockton14:09:44

Hmm, I wasn't using react on those properties but it was still re-rendering

danielstockton14:09:02

I'm using react on cursors and props.

martinklepsch14:09:23

@danielstockton “those properties” as in a key in your local state atom?

danielstockton14:09:37

Yeah, as in anything on local state.

danielstockton14:09:41

Only reacting to app-state

martinklepsch14:09:59

@danielstockton you’re right, any change to local mixin atoms will cause a re-render

martinklepsch14:09:14

misremembered 🙂