Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/developit/preact-cli-plugin-async
/ update
Method
update
test/index.js:4–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
export
default
class
Foo extends Component {
4
async
update() {
5
let
source =
await
(
await
fetch(
'/'
)).text();
6
this.setState({ source });
7
}
8
9
componentDidMount() {
10
this.update();
Callers
1
componentDidMount
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected