Skip to content

Commit

Permalink
fix(renderer): use new container signature
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Apr 22, 2024
1 parent dbed854 commit 1400fac
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/fiber/src/core/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,19 @@ export function createRoot<TCanvas extends Canvas>(canvas: TCanvas): ReconcilerR
const store = prevStore || createStore(invalidate, advance)
// Create renderer
const fiber =
prevFiber || reconciler.createContainer(store, ConcurrentRoot, null, false, null, '', logRecoverableError, null)
prevFiber ||
(reconciler as any).createContainer(
store, // container
ConcurrentRoot, // tag
null, // hydration callbacks
false, // isStrictMode
null, // concurrentUpdatesByDefaultOverride
'', // identifierPrefix
logRecoverableError, // onUncaughtError
logRecoverableError, // onCaughtError
logRecoverableError, // onRecoverableError
null, // transitionCallbacks
)
// Map it
if (!prevRoot) _roots.set(canvas, { fiber, store })

Expand Down

0 comments on commit 1400fac

Please sign in to comment.