React Boilerplate Redux Saga Hoc

Search Results

No results for 'N/A'
1. Getting Started
2. Basic Concepts
3. Handlers
4. Advanced Concepts
5. Examples6. Advanced Examples7. Params# function Properties# task Properties# request Properties# callback Properties# task - <Object># request - <Object>Api ReferenceComplete DocumentationPrevious DocumentationReadme

Action - function(object)

# function Properties

task
{ "name": "string" }
"Data-Handler"
tasks
Array<object>
request
object
error
object
loader
bool
callback
object
filter
Array<string> │ Array<Array<string>>

task - object

# task Properties

name
"Data-Handler" │ "Infinite-Handler" │ "Delete-Handler" │ "Update-Handler" │ "Update-Key-Handler" │ "Toggle-Key-Handler" │ "Splice-Data-Handler" │ "Delete-Key-Handler" │ "Don't-Update-Data-Handler" │ "Custom-Handler"
"Data-Handler"
clearData
true │ false
false
subKey
Array<string>
isAppendTop
true │ false
deleteKey
Array<string │ Array<string>>
id
number │ string │ Array<string> │ Array<number>
key
string
spliceKey
Array<number>
toggleKey
true │ false
updateCallback
func

request - object

# request Properties

query
object
params
object
payload
object
axiosConfig
object
paramSerializer
object
{ arrayFormat: "brackets" }
asyncFunction
func
asyncFunctionParams
array
retry
bool
0
errorParser
bool
false
polling
bool
false
pollingCount
number
delay
number
8000
clearDataOnError
bool
false
errorDataHandling
bool
true
defaultErrorParser
bool
false

Callback - object

# callback Properties

successCallback
func
errorCallback
func
finalCallback
func
pollingCallback
func
updateStateCallback
func

# task - <Object>

PropsDescriptionvalueDefault Valuetypeusage
nameType of task to executeData-Handler
Infinite-Handler
Delete-Handler
Callback-Handler
Update-Handler
Update-Key-Handler
Toggle-Key-Handler
Splice-Data-Handler
Delete-Key-Handler
Don't-Update-Data-Handler
Custom-Handler
Data-Handlerstring{ name: 'Data-Handler' }
clearDataclear previous stored datatrue or falsefalseboolean{ clearData: true }
subKeyfor doing various tasks on deep object[]nullarray{ subKey: ['data','filter-1'] }
limitnumbernullnumber{ name: 'Infinite-Handler', limit: 15 }
isAppendToptrue or falsefalseboolean{ isAppendTop: true }
deleteKey[]nullarray{ deleteKey: ['age','name'] }
id[]nullarray{ id: [1,2] }
keystringnullstring{ key: 'id' }
spliceKey[2,4]nullarray{ spliceKey: [2,4] }
toggleKey[]nullarray{ toggleKey: ['age','name'] }
values[] or {}nullarray or object{values: {2: {name: 'ram'}}}
{values: [{name: 'sundar'}]}
updateCallbackfunctionnullfunction{updateCallback: (previousData,responseData) =>
previousData.concat(responseData)}
callbackfunctionnullfunction{callback: (previousData,responseData) =>
previousData.concat(responseData)}

# request - <Object>

PropsvalueDefault Valuetypeusage
query{}nullobject{query: { id: 20 }}
params{}nullobject{params: { id: 20 }}
payload{}nullobject{payload: { id: 20 }}
axiosConfig{}nullobject{headers: {} }
paramSerializer{}{ arrayFormat: 'brackets' }object`{ arrayFormat: 'comma
asyncFunctionfunctionnullfunction{asyncFunction : async (url) => fetch(url)}}
asyncFunctionParamsarraynullarray{asyncFunctionParams: ['https://www.example.com/']}
retrynumber0number{retry: 3}
errorParserfunctionnullfunction{errorParser: () => {}}
pollingbooleanfalseboolean{polling: true}
pollingCountnumberInfinitenumber{pollingCount: 4}
delaynumber8000number{delay: 10000}
clearDataOnErrorbooleanfalseboolean{clearDataOnError: false}
errorDataHandlingbooleantrueboolean{errorDataHandling: false}
defaultErrorParserbooleanfalseboolean{defaultErrorParser: true}
onCancelTaskfunctionnullfunction{onCancelTask: () => {cancelfunction()} }
axiosfunctionnullfunction{axios: axiosInterceptor }
useCacheBooleannullBoolean{useCache: true }