MCPcopy
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
2export function fetchCount(amount = 1) {
3 return new Promise((resolve) =>
4 setTimeout(() => resolve({ data: amount }), 500)
5 );
6}

Callers 1

counterSlice.jsFile · 0.90

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected