Closed Minishlink closed 6 years ago
We had a crash on this.refs.view.measure
.
I took the liberty to add checks for this.refs.list
too since there were none, it's quite standard to do that for refs btw :)
But it should be always safe to access refs after component is mounted, curious on how the crash happens
I have same problem when navigate quickly, happen this,
How can i solve it?
well it's always be good to be cautious, I'd love to land this, thanks
just curious, when will the
refs
isundefined
, per you another PR, seems you pass a functional component which has no refs itself, but I don't think it would happen with a class component, as you can only access those methods after the component is rendered