I added a simple check for an edge case where the node might not exist by the time the import promise resolves. In my case, the buttons are mounted once a route is signed into, but then there is a potential immediate redirect, in which case React has mounted and unmounted the buttons before the import resolves, by which time this._.current is null.
Hi, thanks for this and
github-buttons
!I added a simple check for an edge case where the node might not exist by the time the import promise resolves. In my case, the buttons are mounted once a route is signed into, but then there is a potential immediate redirect, in which case React has mounted and unmounted the buttons before the import resolves, by which time
this._.current
isnull
.