next.js
d7aef6f9 - Ensure `searchParams` access in `"use cache"` triggers error when caught (#77838)

Commit
300 days ago
Ensure `searchParams` access in `"use cache"` triggers error when caught (#77838) Accessing search params in `"use cache"` functions is not allowed. We need to make sure that a build or dev error is still triggered even when the `searchParams` access is wrapped in a try/catch block. This also fixes a bug where the errors were not correctly source-mapped with Turbopack. related: #75662 closes NAR-86
Author
Parents
Loading