MCPcopy Index your code
hub / github.com/react/react / initialize

Function initialize

packages/react-devtools-core/src/backend.js:63–76  ·  view source on GitHub ↗
(
  maybeSettingsOrSettingsPromise?:
    | DevToolsHookSettings
    | Promise<DevToolsHookSettings>,
  shouldStartProfilingNow: boolean = false,
  profilingSettings?: ProfilingSettings,
)

Source from the content-addressed store, hash-verified

61}
62
63export function initialize(
64 maybeSettingsOrSettingsPromise?:
65 | DevToolsHookSettings
66 | Promise<DevToolsHookSettings>,
67 shouldStartProfilingNow: boolean = false,
68 profilingSettings?: ProfilingSettings,
69) {
70 installHook(
71 window,
72 maybeSettingsOrSettingsPromise,
73 shouldStartProfilingNow,
74 profilingSettings,
75 );
76}
77
78export function connectToDevTools(options: ?ConnectOptions) {
79 const hook: ?DevToolsHook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__;

Callers

nothing calls this directly

Calls 1

installHookFunction · 0.90

Tested by

no test coverage detected