MCPcopy
hub / github.com/preactjs/preact / Error

Function Error

demo/nested-suspense/index.jsx:6–15  ·  view source on GitHub ↗
({ resetState })

Source from the content-addressed store, hash-verified

4 return <div>Loading...</div>;
5};
6const Error = function ({ resetState }) {
7 return (
8 <div>
9 Error!&nbsp;
10 <a onClick={resetState} href="#">
11 Reset app
12 </a>
13 </div>
14 );
15};
16
17const pause = timeout =>
18 new Promise(d => setTimeout(d, timeout), console.log(timeout));

Callers 5

server.jsFile · 0.85
AppFunction · 0.85
prop-types.test.jsFile · 0.85
getSortedUsersFunction · 0.85

Calls

no outgoing calls

Tested by 1

AppFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…