A common friction point of new users trying out fresh is that they try to install event handlers in server-only components inside routes/. These components are only ever rendered on the server, so attaching event handlers does nothing. Users would get confused by that.
A common friction point of new users trying out fresh is that they try to install event handlers in server-only components inside
routes/
. These components are only ever rendered on the server, so attaching event handlers does nothing. Users would get confused by that.This PR adds a linting rule for when a user tries to add an event handler in a server component.