We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c0a38 commit fa343a8Copy full SHA for fa343a8
node_package/src/ReactOnRailsRSC.ts
@@ -9,15 +9,6 @@ import createReactOutput from './createReactOutput';
9
import { isPromise, isServerRenderHash } from './isServerRenderResult';
10
import ReactOnRails from './ReactOnRails';
11
12
-(async () => {
13
- try {
14
- // @ts-expect-error AsyncLocalStorage is not in the node types
15
- globalThis.AsyncLocalStorage = (await import('node:async_hooks')).AsyncLocalStorage;
16
- } catch (e) {
17
- console.log('AsyncLocalStorage not found');
18
- }
19
-})();
20
-
21
const stringToStream = (str: string) => {
22
const stream = new PassThrough();
23
stream.push(str);
0 commit comments