Created
June 9, 2020 14:46
-
-
Save emanueleDiVizio/6a919fe2c1f1cf0765674cea3a209f51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createNetworkMiddleware(config: MiddlewareConfig): ReduxMiddleware | |
type MiddlewareConfig = { | |
regexActionType?: RegExp = /FETCH.*REQUEST/, | |
actionTypes?: Array<string> = [], | |
queueReleaseThrottle?: number = 50, | |
shouldDequeueSelector: (state: RootReduxState) => boolean = () => true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment