mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Renamed nativeHookIndex -> index
This commit is contained in:
1 parent
8cd8b29015
commit
e35819e68d
5 files changed
+14
-14
No files matched your search
@@ -56,7 +56,7 @@ type HookViewProps = {|
|
||||
|};
|
||||
|
||||
function HookView({ canEditHooks, hook, id, path = [] }: HookViewProps) {
|
||||
const { name, nativeHookIndex, subHooks, value } = hook;
|
||||
const { name, index, subHooks, value } = hook;
|
||||
|
||||
const bridge = useContext(BridgeContext);
|
||||
const store = useContext(StoreContext);
|
||||
@@ -126,7 +126,7 @@ function HookView({ canEditHooks, hook, id, path = [] }: HookViewProps) {
|
||||
const rendererID = store.getRendererIDForElement(id);
|
||||
bridge.send('overrideHook', {
|
||||
id,
|
||||
nativeHookIndex,
|
||||
index,
|
||||
path,
|
||||
rendererID,
|
||||
value,
|
||||
|
||||
Reference in new issue
Block a user