Improve lint error messages for useEffectEvent (#34669)
Called Before: > `logEvent` is a function created with React Hook "useEffectEvent", and can only be called from the same component. Called After: > `logEvent` is a function created with React Hook "useEffectEvent", and can only be called from Effects and Effect Events in the same component. Referenced Before: > `logEvent` is a function created with React Hook "useEffectEvent", and can only be called from the same component. They cannot be assigned to variables or passed down. Referenced After: > `logEvent` is a function created with React Hook "useEffectEvent", and can only be called from Effects and Effect Events in the same component. It cannot be assigned to a variable or passed down. DiffTrain build for [67e24bc5279204108b749fe48b4d395ef9e49e67](https://github.com/facebook/react/commit/67e24bc5279204108b749fe48b4d395ef9e49e67)
J
jackpope committed
f3ad646b4024aebf4e90492d7f29c9128e624308
Parent: 6089abc