Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions src/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down