How does Redux avoid repeating ordinary data requests?

for example, there are many backend APIs for querying Car,People,Building and other resources. I need each resource to define the Reducer,action creator corresponding to the action type, of GET__XXX , GET_XXX_SUCCESS , GET_XXX_FAIL . Is there any library that can help me solve this repetition while maintaining a certain degree of flexibility?

Mar.02,2021

are all requests, except that the object (interface) of the request is different, so there is no need to define the corresponding action.type for each resource. (in the high-level section of the official document, you can learn about link description )

Menu