diff --git a/package.json b/package.json index 39b0bb1..5382ebc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@plasmicapp/react-ssr-prepass", - "version": "2.0.6", + "version": "2.0.7", "description": "A custom partial React SSR renderer for prefetching and suspense", "main": "dist/react-ssr-prepass.js", "module": "dist/react-ssr-prepass.es.js", diff --git a/src/visitor.js b/src/visitor.js index c447d59..7da6bac 100644 --- a/src/visitor.js +++ b/src/visitor.js @@ -81,8 +81,9 @@ import { import { isClientReference } from './utils' -const { ReactCurrentDispatcher } = (React: any) - .__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED +const { ReactCurrentDispatcher } = + (React: any).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED || + (React: any).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE // In the presence of setImmediate, i.e. on Node, we'll enable the // yielding behavior that gives the event loop a chance to continue