Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/facebook/react
/ onMessage
Function
onMessage
packages/react-devtools-inline/src/frontend.js:29–31 ·
view source on GitHub ↗
({data})
Source
from the content-addressed store, hash-verified
27
listen(fn) {
28
// $FlowFixMe[missing-local-annot]
29
const
onMessage = ({data}) => {
30
fn(data);
31
};
32
window.addEventListener(
'message'
, onMessage);
33
return
() => {
34
window.removeEventListener(
'message'
, onMessage);
Callers
nothing calls this directly
Calls
1
fn
Function · 0.50
Tested by
no test coverage detected