Fork me on GitHub
#reagent
<
2017-05-02
>
mikepence16:05:36

is there a simple way to tag an html element to have react not update it?

rgdelato16:05:26

you probably have to make it a proper component. then you can make shouldComponentUpdate always return false

mikepence16:05:23

thanks @rgdelato -- I just figured out just that need. 🙂

pesterhazy16:05:58

wait.. if a subcomponent has no props, it should never be updated

pesterhazy16:05:32

so especially for browser components, there shouldn't be a need to take action

mikepence17:05:05

it does have some properties

mikepence17:05:35

I guess re-frame makes reagent components for all functions in viewer.views

mikepence17:05:12

so I need to figure out how to get a handle to that component and tell it not to update

pesterhazy17:05:43

what is viewer.views?

pesterhazy17:05:14

@mikepence,I'm guessing a component you created?

mikepence17:05:49

automatically through re-frame, I believe

pesterhazy17:05:30

AFAIK re-frame is not concerned with views at all

pesterhazy17:05:00

reagent does create a component whenever you use one [my-component]

mikepence17:05:48

that seems to be correct

mikepence17:05:13

guess I need to go read the reagent docs 🙂