Closed Parkjunwu closed 1 year ago
When using props to play props, YoutubePlayer component is rerendering.
If I use state on YoutubePlayer component contained component, YoutubePlayer component not rerendering.
But I use same thing which is not state but inherited by parent, YoutubePlayer component is rerendering whenever props change.
Is there any strategy to avoid this issue?
Thank you for checking my issue!
I'm so sorry... this is my mistake...
When using props to play props, YoutubePlayer component is rerendering.
If I use state on YoutubePlayer component contained component, YoutubePlayer component not rerendering.
But I use same thing which is not state but inherited by parent, YoutubePlayer component is rerendering whenever props change.
Is there any strategy to avoid this issue?
Thank you for checking my issue!