Skip to content

Commit

Permalink
fix(turbo-tasks): Implement is_transient on OperationVc
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Jan 24, 2025
1 parent 66d3b9a commit 62ee28a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion turbopack/crates/turbo-tasks/src/vc/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,16 @@ where
}
}

impl<T> TaskInput for OperationVc<T> where T: ?Sized + Send + Sync {}
// NOTE: This uses the default implementation of `is_resolved` which returns `true` because we don't
// want `OperationVc` arguments to get resolved when passed to a `#[turbo_tasks::function]`.
impl<T> TaskInput for OperationVc<T>
where
T: ?Sized + Send + Sync,
{
fn is_transient(&self) -> bool {
self.node.is_transient()
}
}

impl<T> From<RawVc> for OperationVc<T>
where
Expand Down

0 comments on commit 62ee28a

Please sign in to comment.