Better XxxApi

useXxxApi:

  • use PollingReducer as a configuration provider
  • provide pushAPIs, which update respective state with:
    • pushing status
    • push result

PollingReducer:

  • rename to configurationReducer
  • move polling indication to it's respective state
    XxxState.polling = 'true/false'

usePolling hook: to provide onSuccess, onFailure callbacks

0
In Progress
2
Done
#33 by djmil was closed 2023-11-12 19:46:55 +01:00
#35 by djmil was closed 2023-11-13 16:55:41 +01:00
0
Uncategorized