Skip to main content
1 vote
2 answers
144 views

I have one function which checks for user authorization export const authUser = (rideId, action) => { return (dispatch, getState) => { const postData = { consumer: "Rapi", ...
C P Verma's user avatar
  • 340
1 vote
1 answer
148 views

So I was tasked to fix some buttons so that there is a loading spinner present when they are clicked. The problem is that my solution is not ideal since intellij complained that I have unessesarry ...
physicsuser's user avatar
0 votes
0 answers
35 views

In my code below i am using useEffect with dispatch and inside the dispatch function I am using an asyncThunk. If i console.log, in the fulfilled function provided by the thunk, the user then i get ...
user26607863's user avatar
1 vote
1 answer
138 views

I am a complete beginner, I'm following a tutorial on redux thunk and keep getting this error: redux.js:642 Uncaught TypeError: middleware is not a function at redux.js:642:1 at Array.map (<...
MrsSour's user avatar
  • 13
-1 votes
1 answer
93 views

I have the following async thunk function: const loadProject = createAsyncThunk( '[Project API] Load Project', async (project: IKProject, { dispatch }) => { await kProjectService....
Y_Moshe's user avatar
  • 432
0 votes
1 answer
50 views

I was using Redux Toolkit and tried to use Redux Persist but on terminal it shows this. A non-serializable value was detected in an action, in the path: `register`. Value: [Function: register] Take a ...
kodeater's user avatar
0 votes
0 answers
26 views

I am currently learning redux and encountered an issue with importing redux-thunk in my Node.js project. I’m trying to set up middleware for my Redux store, but when I attempt to import redux-thunk, I ...
elclasico's user avatar
0 votes
0 answers
18 views

i see this error when i start the project "ERROR in ./src/redux/reducers/configureStore.js 7:57-62 export 'default' (imported as 'thunk') was not found in 'redux-thunk' (possible exports: thunk, ...
user25315893's user avatar
1 vote
1 answer
117 views

I need to fetch data from my API with redux thunk and axios. but I'm facing this error inside my console. In this case I have a marketSlice and I want to update my state.market with API Data. ...
Hero's user avatar
  • 178
1 vote
1 answer
892 views

I am new to React and Redux, and I am trying to build a webapp (authentication system) using React and Django. I am following a tutorial to do that, with this github directory. When I try to import ...
Farooq Ahmed's user avatar
1 vote
2 answers
1k views

Now I am trying basic redux logic in Stackblitz platform. import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { composeWithDevTools } from 'redux-devtools-...
Gardener1688's user avatar
0 votes
1 answer
274 views

Let's say I have a thunk: import fetchSomeData from '/path/to/fetchSomeData' const myAction = () => async dispatch => { ... const data = await dispatch(fetchSomeData()) // `...
noblerare's user avatar
  • 12.1k
1 vote
1 answer
433 views

I've integrated into my Next.js app some of my own middleware into the Redux-Toolkit store using configureStore. Middleware is designed to handle asynchronous actions such as fetchAccounts/fulfilled ...
Alexander Gnetov's user avatar
-1 votes
1 answer
171 views

When I run program, it appears error "Server Error Error: middleware is not a function". I don't know why it happened. How can I fix this error? This is my code in store.js import { ...
klng's user avatar
  • 3
1 vote
1 answer
103 views

My code flow is that a user fills the form and submits it which goes to action calling the API and then it returns the postId and stores it in the reducer. Now my main React component has useSelector ...
kheman garg's user avatar

15 30 50 per page
1
2 3 4 5
172