MCPcopy 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
274function isEvent(e: FetchRunArgs[0]): e is Event | React.SyntheticEvent {
275 return typeof e === "object" && "preventDefault" in e
276}
277
278/**
279 *

Callers 1

useAsyncFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected