Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/async-library/react-async
/ isEvent
Function
isEvent
packages/react-async/src/useAsync.tsx:274–276 ·
view source on GitHub ↗
(e: FetchRunArgs[0])
Source
from the content-addressed store, hash-verified
272
| []
273
274
function isEvent(e: FetchRunArgs[0]): e is Event | React.SyntheticEvent {
275
return typeof e ===
"object"
&&
"preventDefault"
in e
276
}
277
278
/**
279
*
Callers
1
useAsyncFetch
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected