diff --git a/fixtures/flight/server/handler.server.js b/fixtures/flight/server/handler.server.js index 058bbab584cee..30a2f0f5f8ec3 100644 --- a/fixtures/flight/server/handler.server.js +++ b/fixtures/flight/server/handler.server.js @@ -2,7 +2,6 @@ import {pipeToNodeWritable} from 'react-transport-dom-webpack/server'; import * as React from 'react'; -import {CacheContext, createCache} from 'react/unstable-cache.js'; import url from 'url'; @@ -11,8 +10,6 @@ function resolve(path) { } module.exports = async function(req, res) { - CacheContext._currentValue = createCache(); - res.setHeader('Access-Control-Allow-Origin', '*'); const m = await import('../src/App.server.js'); // const m = require('../src/App.server.js'); diff --git a/fixtures/flight/src/index.js b/fixtures/flight/src/index.js index 4746d8c5a55e4..ce9595dbe5482 100644 --- a/fixtures/flight/src/index.js +++ b/fixtures/flight/src/index.js @@ -2,7 +2,6 @@ import * as React from 'react'; import {Suspense} from 'react'; import ReactDOM from 'react-dom'; import ReactTransportDOMClient from 'react-transport-dom-webpack'; -import {CacheContext, createCache} from 'react/unstable-cache'; let data = ReactTransportDOMClient.createFromFetch( fetch('http://localhost:3001') @@ -12,14 +11,10 @@ function Content() { return data.readRoot(); } -let cache = createCache(); - ReactDOM.render( - - Loading...}> - - - , + Loading...}> + + , document.getElementById('root') );