Eslint false positive on useEffectEvent? #27
Closed
aeharding
started this conversation in
Something went wrong
Replies: 1 comment 1 reply
-
Thanks for flagging this! This looks like a bug in how the compiler understands import statements. This isn't specifically about |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have the eslint plugin showing an error for the following code snippet (trimmed for brevity):
https://playground.react.dev/#N4Igzg9grgTgxgUxALhASwLYAcIwC4AEwAOgHYEFwwICGeCAwhKfQB54A0ZFUYjNAGwEAjGnADWXcgV6NmbTtxl8AogDM1COIumyAsggwQpPPgCUEak8oQBlPHQTWErLAhiYELQQH1Z6zW0VADcvQhowGwCtPBCwqQBfAjUYCAwCYhBqMTxMgG4yMhccfGSoUm00ZhsANTQAEwQIAAVcBwEAOQhGgAoweGQCMDwPUgBzAEpB1vxBLsaCAB8CYIgGoiU4ZmGh6HgEAFUGizUCAF4bE57ytABHKAQASXqeiYmC6S3SHeACMYQ8DN2vMEAAxXC2eAcSgCWikKBYIFzbpgiHwR5qDoIBCNerQ4INJonSJJM5KUxyFguPA9OqNFptQRMKnsd6FT7bQiNYapACeOPOl0sPTUgj4bNIm05fwBSM6KLiLEF-g0MUVNNe5wAfBtpBQ0KcetyRhB+fUAHRwWDUFgTAjUPCwUgfckywGM+WNcEwSFwPpQ3awRBHeonS3WsISigJCVS76EOCwmjwxEekEYrE4nHq5WqVVBUIsHqas46kh6gjGvk48MwG2EC4jB4fCgURNwhFykHe30Z7G4-1waGQIOHY6WWv1qMEGMu3R5wIau2l3WtysIHmmmtWuthQWigR8Fut-7u2aehDq15ztcOp0wjup8-pzH97OFvDHhLQgDaAF0JQSMgQASIA
And I'm getting the error:
InvalidReact: Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef) (19:23)
My question, is this a valid complaint (am I doing something wrong)? Or is it a problem/limitation with the eslint plugin?
Beta Was this translation helpful? Give feedback.
All reactions