Skip to content

Commit

Permalink
fix: implement HostTransitionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jan 9, 2025
1 parent 074c590 commit 9abc761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fiber/src/core/reconciler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const createReconciler = Reconciler as unknown as <
// Undocumented
// https://github.com/facebook/react/pull/26722
NotPendingTransition: TransitionStatus | null
HostTransitionContext: React.Context<TransitionStatus>
// https://github.com/facebook/react/pull/28751
setCurrentUpdatePriority(newPriority: EventPriority): void
getCurrentUpdatePriority(): EventPriority
Expand Down Expand Up @@ -616,6 +617,7 @@ export const reconciler = createReconciler<
suspendInstance() {},
waitForCommitToBeReady: () => null,
NotPendingTransition: null,
HostTransitionContext: /* @__PURE__ */ React.createContext<HostConfig['TransitionStatus']>(null),
setCurrentUpdatePriority(newPriority: number) {
currentUpdatePriority = newPriority
},
Expand Down

0 comments on commit 9abc761

Please sign in to comment.