stephenscaff / react-animated-cursor

An animated custom cursor React component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check if cursorOuterRef is null

IanDestura opened this issue · comments

image

Add condition to check if the cursorOuterRef is still define or not to avoid error in console

thanks!

A third-level heading

Can you provide a bit more details on how you're producing this?

What's your config and environment look like?

I can't reproduce, but I also don't see any issues with your fix, so more than happy to add the check.

So, turns out, this was a great callout and the issue went beyond your check.

Used Next's linting config which exposed a few other errors/warnings that I addressed with #58

About to merge that in and deploy to npm. Let me know if that fixes you issues.

Thanks.