Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/reduxjs/redux
/ fetchCount
Function
fetchCount
examples/counter/src/features/counter/counterAPI.js:2–6 ·
view source on GitHub ↗
(amount = 1)
Source
from the content-addressed store, hash-verified
1
// A mock function to mimic making an async request for data
2
export
function
fetchCount(amount = 1) {
3
return
new
Promise((resolve) =>
4
setTimeout(() => resolve({ data: amount }), 500)
5
);
6
}
Callers
1
counterSlice.js
File · 0.90
Calls
1
resolve
Function · 0.85
Tested by
no test coverage detected