Redux Toolkit / RTK Query
createAsyncThunk
Creates a thunk with lifecycle action creators for asynchronous work.
Formal Syntax & Structure
react syntaxreact
createAsyncThunk("stock/load", payloadCreator)Working Example
Example Snippetreact
createAsyncThunk("stock/load", payloadCreator)