next.js
5e175e37 - refactor(turbopack/next-api): Make VcArc use OperationVc (#74479)

Commit
1 year ago
refactor(turbopack/next-api): Make VcArc use OperationVc (#74479) `VcArc` represents values passed through napi to next.js and back. Because these values exit the scope of turbo-tasks, similar to how `State` works, they must be operations, so that they're recomputed/"kept alive" when read. These changes were extracted from @sokra's original `OperationVc` work (mostly preserved here: https://github.com/vercel/next.js/pull/72776), though adapted significantly for the removal of the `OperationVc::new()` constructor.
Author
bgw bgw
Parents
Loading