react-twitter-embed
react-twitter-embed copied to clipboard
Passing handle as prop from parent state doesn't re-render
Hey there,
I'm passing the user name from the parent state, but updating that state doesn't trigger a re-render of the TimelineEmbed component:
<TwitterTimelineEmbed
sourceType="profile"
screenName={handle}
options={{height: 700}}
/>
Is there something I'm missing?
Thanks!
Adding key={handle} to the component will resolve this issue.