Closed fendyk closed 1 year ago
When I use the following useEffect, the errors are gone, however, I still find it odd that these errors occur so I still think this is an issue that should be looked in to.
useEffect(() => {
if (status == LoginStatus.LoggedIn) {
return navigate('/');
}
}, [status, navigate]);
This is definitely not an issue with Tailwind Variants, likely some other dependency in your application that is causing this issue. I'd recommend inspecting the stack trace to identify from which module the error originated.
This is definitely not an issue with Tailwind Variants, likely some other dependency in your application that is causing this issue. I'd recommend inspecting the stack trace to identify from which module the error originated.
It is, because removing tailwindcss variants solves the issue, or by doing what I described. And Like I described, it happens with react route.
I will try to make a reproduction soon
Describe the bug When using the
react-router-dom
useNavigate()
hook together with tailwind variants by for example making a button variant component and using it inside a component or screen, the console logs thousands of messages saying:Using the following:
button example:
To Reproduce Steps to reproduce the behavior:
Expected behavior It should work as intended, without the errors
Screenshots
Desktop (please complete the following information):