aboutsummaryrefslogblamecommitdiff
path: root/src/features/counter/counterAPI.js
blob: cc9b4a4423823a7c161e6631fd85181910038a42 (plain) (tree)
1
2
3
4
5
6





                                                            
// A mock function to mimic making an async request for data
export function fetchCount(amount = 1) {
  return new Promise((resolve) =>
    setTimeout(() => resolve({ data: amount }), 500)
  );
}