Skip to content

Commit 660fdf3

Browse files
committed
Add support for React 19
Ref: FormidableLabs/react-ssr-prepass#92
1 parent 7ad6d79 commit 660fdf3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@plasmicapp/react-ssr-prepass",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"description": "A custom partial React SSR renderer for prefetching and suspense",
55
"main": "dist/react-ssr-prepass.js",
66
"module": "dist/react-ssr-prepass.es.js",

src/visitor.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ import {
8181

8282
import { isClientReference } from './utils'
8383

84-
const { ReactCurrentDispatcher } = (React: any)
85-
.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
84+
const { ReactCurrentDispatcher } =
85+
(React: any).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ||
86+
(React: any).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
8687

8788
// In the presence of setImmediate, i.e. on Node, we'll enable the
8889
// yielding behavior that gives the event loop a chance to continue

0 commit comments

Comments
 (0)