(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the // host config, but because they are passed in at runtime, we have to thread // them through the root constructor. Perhaps we should put them all into a // single type, like a DynamicHostConfig that is defined by the renderer. identifierPrefix, onRecoverableError, transitionCallbacks)
| 28703 | } |
| 28704 | |
| 28705 | function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the |
| 28706 | // host config, but because they are passed in at runtime, we have to thread |
| 28707 | // them through the root constructor. Perhaps we should put them all into a |
| 28708 | // single type, like a DynamicHostConfig that is defined by the renderer. |
| 28709 | identifierPrefix, onRecoverableError, transitionCallbacks) { |
| 28710 | var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError); |
| 28711 | // stateNode is any. |
| 28712 | |
| 28713 | |
| 28714 | var uninitializedFiber = createHostRootFiber(tag, isStrictMode); |
| 28715 | root.current = uninitializedFiber; |
| 28716 | uninitializedFiber.stateNode = root; |
| 28717 | |
| 28718 | { |
| 28719 | var _initialState = { |
| 28720 | element: initialChildren, |
| 28721 | isDehydrated: hydrate, |
| 28722 | cache: null, |
| 28723 | // not enabled yet |
| 28724 | transitions: null, |
| 28725 | pendingSuspenseBoundaries: null |
| 28726 | }; |
| 28727 | uninitializedFiber.memoizedState = _initialState; |
| 28728 | } |
| 28729 | |
| 28730 | initializeUpdateQueue(uninitializedFiber); |
| 28731 | return root; |
| 28732 | } |
| 28733 | |
| 28734 | var ReactVersion = '18.3.1'; |
| 28735 |
no test coverage detected
searching dependent graphs…