I'm in a situation where I'm rendering different contents inside an <ElementPan> component, and whenever the contents change I'd need to reset all panning.
I got it to work by using componentWillReceiveProps and resetting the panning manually there, but it feels like a hammer kind of solution.
Any advice?
I'm in a situation where I'm rendering different contents inside an
<ElementPan>component, and whenever the contents change I'd need to reset all panning.I got it to work by using
componentWillReceivePropsand resetting the panning manually there, but it feels like a hammer kind of solution.Any advice?