Closed walkermalling closed 2 years ago
I have not personally hit this issue yet, but if you search this repo for null
or nodes related issues, you can already see a few of them, and they're all related to issues in the intro.js codebase which seems to contain a lot of code not null
/ undefined
type-guarded and the error you pasted kinda makes me think the issue could be on the intro.js side without a more thorough review.
From the error, it looks like it may even be related to https://github.com/usablica/intro.js/issues/1282.
Thanks @HiDeoo , after some more debugging I completely agree. I'll take this up with intro.js
Versions:
intro.js ^4.1.0
intro.js-react ^0.5.0
Error:
Comments:
I'm using the
ref
from<Hints />
to call into therefresh
api. I have to do this to get hints to reposition after layout changes. I have a condition in the ref function to only call refresh if the layout has changed. I haven't been able to determine a specific set of circumstances that triggers this error, but it does consistently trigger with use. This leads me to believe it may be a race condition (but that is without diving into your source).If you have any suggestions on how to prevent this, please let me know!