देने के लिए कैसे करने के लिए एक प्रकार createAsyyncthunk

कोड उदाहरण

0
0

देने के लिए कैसे करने के लिए एक प्रकार createAsyyncthunk

createAsyncThunk<param1,param2,param3>

the first type-parameter
to tell what type will be returned as a result.

The second type-parameter in `createAsyncThunk`
 tells what argument takes the function inside:
 
 The third type-parameter is an object with:
 `{dispatch?, state?, extra?, rejectValue?}`` fields.

`extra` is useful when we need to pass 
 some static data to the request function,
 like jwt-token or HTTP-headers.

 `rejectValue` is useful when we need to type 
 possible errors.

इसी तरह के पन्ने

उदाहरणों के साथ समान पृष्ठ

अन्य भाषाओं में

यह पृष्ठ अन्य भाषाओं में है

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................