Sometimes, you want to fetch data by userId, but you have to strip the duplicated id. That's very fussy. Now you can use this plugin.
Installation
yarn add react-fetch-queue # 或者 npm install react-fetch-queue --save
Usage
;;;; ; ; ; ; ;
Options
property: string
The class collect your value of this property, and throw out when invoking method onFetch(props, keys)
shouldInsert(props): boolean
Enable or disable the behavior that insert property_value from props.
onFetch(props, keys): Promise | Promise[]
Run Action in proper time.