[bug]: SidebarProvider - Writing to a variable defined outside a component or hook is not allowed. Consider using an effect eslint(react-compiler/react-compiler) #6912
Labels
bug
Something isn't working
Describe the bug
While using React Compiler and its recommended ESLint settings, we find this violation within the SidebarProvider component:
Writing to a variable defined outside a component or hook is not allowed. Consider using an effect eslint(react-compiler/react-compiler)
@ document
It probably still works fine, but adhering to best React standards should be a priority.
Affected component/components
sidebar.tsx / SidebarProvider
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: