Skip to content

Commit 9abc761

Browse files
fix: implement HostTransitionContext
facebook/react#28728
1 parent 074c590 commit 9abc761

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/fiber/src/core/reconciler.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const createReconciler = Reconciler as unknown as <
7979
// Undocumented
8080
// https://github.com/facebook/react/pull/26722
8181
NotPendingTransition: TransitionStatus | null
82+
HostTransitionContext: React.Context<TransitionStatus>
8283
// https://github.com/facebook/react/pull/28751
8384
setCurrentUpdatePriority(newPriority: EventPriority): void
8485
getCurrentUpdatePriority(): EventPriority
@@ -616,6 +617,7 @@ export const reconciler = createReconciler<
616617
suspendInstance() {},
617618
waitForCommitToBeReady: () => null,
618619
NotPendingTransition: null,
620+
HostTransitionContext: /* @__PURE__ */ React.createContext<HostConfig['TransitionStatus']>(null),
619621
setCurrentUpdatePriority(newPriority: number) {
620622
currentUpdatePriority = newPriority
621623
},

0 commit comments

Comments
 (0)