next.js
a9a45903 - turbo-tasks-fs: don't read written FileContent outside a cached task

Commit
22 hours ago
turbo-tasks-fs: don't read written FileContent outside a cached task DiskFileSystem::write read its FileContent to decide between a composed and a flat write. FileContent is hash-serialized, so after a cache restore (e.g. a moved project) that read re-executed the content's producers. Move the decision into a separate prepare_write task whose result is persisted, like FileContent::persist before. A stale composition captured later falls back to the file's own bytes instead of retrying. Co-authored-by: Luke Sandberg <210140+lukesandberg@users.noreply.github.com>
Parents
Loading