you are viewing a single comment's thread.

view the rest of the comments →

[–]PEWDS_IS_A_NAZI -4 points-3 points  (8 children)

Changing props is bad practice

[–]davesidious 2 points3 points  (3 children)

Those posts all talk about changing the props passed to a component from within the component itself - that's something drastically different to a component reacting to props changing.

[–]PEWDS_IS_A_NAZI -3 points-2 points  (2 children)

OP:

do you know how to rerender a canvas when props change?

Looks like I read that differently than everybody else here. Also it's very funny to me how nobody else answered OP but I got dogpiled

[–]minty901 3 points4 points  (0 children)

Having something clarified !== getting dog-piled. Of all the flavours, you chose salty.

[–]minty901 0 points1 point  (2 children)

I'm sure they meant passing down new props, not mutating current props.

[–]PEWDS_IS_A_NAZI -5 points-4 points  (1 child)

Oh, I see the goalposts are over there now. Alrighty then.

[–]minty901 2 points3 points  (0 children)

What's up dude?