react-pro-sidebar icon indicating copy to clipboard operation
react-pro-sidebar copied to clipboard

Passing useRef to useEffect in SubMenu component

Open khanhna opened this issue 3 years ago • 0 comments

Hi, I just came by this real nice side bar component, and an absolute yes that i'm gonna implement it. But I have failed install the package due to i'm using tailwind-css and install both post-css and pre-processor is cumbersome. So i decide to fork the code and directly embed them into the project. But there's just only this one thing that i can't get pass through, passing useRef reference to useEffect, that causing react-hooks/exhaustive-deps that i can't get rid of. When running, the console yelling-out like below.

Is there anything that i can do about it ? Please, let me know if you need the code for a closer look. Have a good day.

image

image

khanhna avatar Aug 25 '21 18:08 khanhna