You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone! I just discovered this repository and I'm loving it so far. The new Liquid Ether component especially caught my eye. I was testing it out on a nextjs16 project and it worked fine out the box but I did keep getting a compilation warning/issue.
The issue flagged by eslint is that inline classes aren't allowed/shouldn't be placed within useEffect.
To fix this I refactored the component using a factory function creation pattern and extracted the classes from the useEffect. Feel free to check out this fix and see if it's something that can be integrated into the existing component or if it inspires a different fix to the issue!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! I just discovered this repository and I'm loving it so far. The new Liquid Ether component especially caught my eye. I was testing it out on a nextjs16 project and it worked fine out the box but I did keep getting a compilation warning/issue.
The issue flagged by eslint is that inline classes aren't allowed/shouldn't be placed within useEffect.
To fix this I refactored the component using a factory function creation pattern and extracted the classes from the useEffect. Feel free to check out this fix and see if it's something that can be integrated into the existing component or if it inspires a different fix to the issue!
Beta Was this translation helpful? Give feedback.
All reactions