Commits
Click on a commit to change the comparison rangeImprove error message for sync server functions
When a server action or `'use cache'` function is defined as a
synchronous function, the error message now only marks the function name
for better clarity. Previously, the entire function body was marked,
which looks fine in small test fixtures, but is pretty messy for larger
functions, both in the terminal as well as in the dev error overlay.
For anonymous default exports, we can't optimize this and are still
marking the entire function body, as we don't have a name to refer to.2 days ago
by unstubbable