Skip to content
Permalink
Browse files

Renamed overrideHook -> overrideHookState

  • Loading branch information...
bvaughn committed Feb 23, 2019
1 parent e3801d8 commit dc53d9c35f9a9b8345ba605ef131e39ccbeb1547
Showing with 3 additions and 3 deletions.
  1. +3 −3 packages/react-reconciler/src/ReactFiberReconciler.js
@@ -341,7 +341,7 @@ export function findHostInstanceWithNoPortals(
return hostFiber.stateNode;
}

let overrideHook = null;
let overrideHookState = null;
let overrideProps = null;

if (__DEV__) {
@@ -370,7 +370,7 @@ if (__DEV__) {
};

// Support DevTools editable values for useState and useReducer.
overrideHook = (
overrideHookState = (
fiber: Fiber,
index: number,
path: Array<string | number>,
@@ -407,7 +407,7 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean {

return injectInternals({
...devToolsConfig,
overrideHook,
overrideHookState,
overrideProps,
currentDispatcherRef: ReactCurrentDispatcher,
findHostInstanceByFiber(fiber: Fiber): Instance | TextInstance | null {

0 comments on commit dc53d9c

Please sign in to comment.
You can’t perform that action at this time.