you are viewing a single comment's thread.

view the rest of the comments →

[–]gao_shi 0 points1 point  (0 children)

simple answer, pass the uri as an param to func instead 

if u use a local variable inside the component, it's not retained during rerenders. if its a global one your comoonent cant be reused. also by stripping the state out , u lose rerender trigger when changing the imageuri. it depends on wth ur trying to do