next.js
3d30f407 - Allow exporting object and array literals in `'use cache'` files again (#86655)

Commit
21 days ago
Allow exporting object and array literals in `'use cache'` files again (#86655) In #86014 we added a validation for exporting object and array literals from `'use cache'` files. This was a bit too restrictive, and short-sighted, as it would prevent exporting common things like metadata or viewport objects from page and layout files, if the file uses a `'use cache'` top-level directive.
Author
Parents
Loading