Unverified Commit 2a594945 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Cleanup `config.experimental.reactOwnerstack` (#78021)

parent 2b34bfac
...@@ -725,7 +725,6 @@ pub struct ExperimentalConfig { ...@@ -725,7 +725,6 @@ pub struct ExperimentalConfig {
/// directory. /// directory.
ppr: Option<ExperimentalPartialPrerendering>, ppr: Option<ExperimentalPartialPrerendering>,
taint: Option<bool>, taint: Option<bool>,
react_owner_stack: Option<bool>,
#[serde(rename = "routerBFCache")] #[serde(rename = "routerBFCache")]
router_bfcache: Option<bool>, router_bfcache: Option<bool>,
proxy_timeout: Option<f64>, proxy_timeout: Option<f64>,
...@@ -1417,11 +1416,6 @@ impl NextConfig { ...@@ -1417,11 +1416,6 @@ impl NextConfig {
Vc::cell(self.experimental.taint.unwrap_or(false)) Vc::cell(self.experimental.taint.unwrap_or(false))
} }
#[turbo_tasks::function]
pub fn enable_react_owner_stack(&self) -> Vc<bool> {
Vc::cell(self.experimental.react_owner_stack.unwrap_or(false))
}
#[turbo_tasks::function] #[turbo_tasks::function]
pub fn enable_router_bfcache(&self) -> Vc<bool> { pub fn enable_router_bfcache(&self) -> Vc<bool> {
Vc::cell(self.experimental.router_bfcache.unwrap_or(false)) Vc::cell(self.experimental.router_bfcache.unwrap_or(false))
......
...@@ -120,7 +120,6 @@ pub async fn get_next_client_import_map( ...@@ -120,7 +120,6 @@ pub async fn get_next_client_import_map(
ClientContextType::App { app_dir } => { ClientContextType::App { app_dir } => {
let react_flavor = if *next_config.enable_ppr().await? let react_flavor = if *next_config.enable_ppr().await?
|| *next_config.enable_taint().await? || *next_config.enable_taint().await?
|| *next_config.enable_react_owner_stack().await?
|| *next_config.enable_view_transition().await? || *next_config.enable_view_transition().await?
|| *next_config.enable_router_bfcache().await? || *next_config.enable_router_bfcache().await?
{ {
...@@ -700,10 +699,9 @@ async fn rsc_aliases( ...@@ -700,10 +699,9 @@ async fn rsc_aliases(
) -> Result<()> { ) -> Result<()> {
let ppr = *next_config.enable_ppr().await?; let ppr = *next_config.enable_ppr().await?;
let taint = *next_config.enable_taint().await?; let taint = *next_config.enable_taint().await?;
let react_owner_stack = *next_config.enable_react_owner_stack().await?;
let router_bfcache = *next_config.enable_router_bfcache().await?; let router_bfcache = *next_config.enable_router_bfcache().await?;
let view_transition = *next_config.enable_view_transition().await?; let view_transition = *next_config.enable_view_transition().await?;
let react_channel = if ppr || taint || react_owner_stack || view_transition || router_bfcache { let react_channel = if ppr || taint || view_transition || router_bfcache {
"-experimental" "-experimental"
} else { } else {
"" ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment