We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec98d36 commit f3d2e65Copy full SHA for f3d2e65
packages/react-reconciler/src/ReactFiberReconciler.js
@@ -827,14 +827,6 @@ if (__DEV__) {
827
};
828
}
829
830
-function findHostInstanceByFiber(fiber: Fiber): Instance | TextInstance | null {
831
- const hostFiber = findCurrentHostFiber(fiber);
832
- if (hostFiber === null) {
833
- return null;
834
- }
835
- return hostFiber.stateNode;
836
-}
837
-
838
function emptyFindFiberByHostInstance(
839
instance: Instance | TextInstance,
840
): Fiber | null {
@@ -863,7 +855,6 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean {
863
855
setSuspenseHandler,
864
856
scheduleUpdate,
865
857
currentDispatcherRef: ReactSharedInternals,
866
- findHostInstanceByFiber,
867
858
findFiberByHostInstance:
868
859
findFiberByHostInstance || emptyFindFiberByHostInstance,
869
860
// React Refresh
0 commit comments