Skip to content

Fix useState() mutation warnings#216

Open
neoncube2 wants to merge 2 commits intoalexkatz:mainfrom
neoncube2:fix-use-state-mutation-warnings
Open

Fix useState() mutation warnings#216
neoncube2 wants to merge 2 commits intoalexkatz:mainfrom
neoncube2:fix-use-state-mutation-warnings

Conversation

@neoncube2
Copy link

Fixes this linting warning from react-compiler/react-compiler:

C:\react-tiny-popover\src\useElementRef.ts
  12:5  error  Mutating a value returned from 'useState()', which should not be mutated. Use the setter function to update instead 

This PR should merged after #215

…cript compile errors. Fixed .eslintignore deprecation warning
…uld not be mutated. Use the setter function to update instead"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant