Skip to main content

All Questions

Tagged with
-2 votes
1 answer
131 views

Trying to configure a private Axios instance for use within Redux slice

So I am working on authentication for my app, and what I am trying to accomplish is providing my redux thunk functions with a private Axios instance so they can make authenticated requests. The main ...
Pablo T's user avatar
  • 21
0 votes
0 answers
55 views

Handling State Updates for Cancelled Axios Requests with AbortController in React/Redux

I've integrated AbortController into my React application to cancel Axios requests as part of my state management with Redux. My setup includes dispatching actions to update the application state when ...
george.m's user avatar
1 vote
1 answer
73 views

React-Redux-axios-Typescript: ERROR Cannot read properties of undefined

I'm a backend dev, and not too familiar with frontend development, just making some front for solo project... So I'm trying to login user right after setting password. Here's my code: This is from ...
yerokha's user avatar
  • 11
1 vote
1 answer
56 views

Actions Must be Plain Objects - React Error

Actions must be a plain object error. The Edit button on the projectList component should trigger a slide out window that displays the details of the project and allows the project to be edited. Once ...
Lewis Northcott's user avatar
-1 votes
1 answer
36 views

Redux store trigger a infinity rerender

I have this service class to get the data from backend. I'm making a get request to get some data in the getProjects method, i'm using axios: export default class MissionService { keycloak: ...
Mark Philips's user avatar
-1 votes
1 answer
218 views

Await / axios always return pending action with redux toolkit

I'm moving from Duck to redux toolkit. Now I'll try to explain this behavior, this thing: = await axios always return the pending action. Removing the await the api call "works", but return ...
Asinox's user avatar
  • 6,843
1 vote
1 answer
30 views

App Crash - React Redux - not getting params correctly

I'm currently facing an issue with deleting items from a wishlist in my React Redux application. I have implemented a feature where users can add items to their wishlist, but when they try to delete ...
Matteo Lanci's user avatar
0 votes
0 answers
86 views

cannot get token after refresh page (F5) redux-toolkit

i have token that send to global variable using redux const initialState = { user: null, isError: false, isSuccess: false, isLoading: false, message: "" } export const ...
si bungsu's user avatar
0 votes
0 answers
210 views

AxiosError (Request failed with status code 400)

I have been following a React-Django tutorial. In addition to tutorial I was trying to store image using a post request via axios but getting a axios error 400. I am trying to make a post request ...
Shahood Amir's user avatar
0 votes
1 answer
157 views

Can I return a single error with Promise.allSettled() on a multiple axios post?

I am sending objects with more than one value in the list to a single api, and I have done this in successive objects as follows. Redux action: import { axios } from "@lib/axios"; export ...
Frank HAWK's user avatar
1 vote
1 answer
41 views

Need some help regarding Redux Toolkit

The thunk appears as follows: export const registerUser = createAsyncThunk( "auth/register", async (userData) => { try { const response = await axios.post(REGISTER_URL, ...
nz_19's user avatar
  • 71
0 votes
1 answer
287 views

RTK Query Simple Explanation through Code

Please someone simply explain the RTK query in react. Is it replacing axios? For e.g: If there is a react form having the following details FirstName, LastName, City, CustID and Submit button. when ...
Dips's user avatar
  • 11
-1 votes
1 answer
534 views

How i can fix error Cannot read properties of undefined (reading 'orderItems')?

i'm starting developing one webshop and i got this error. This is my code: import React, { useEffect } from "react"; import { Link } from "react-router-dom"; import Header from &...
Sanchosmore's user avatar
0 votes
1 answer
177 views

Axios post file and json in the same request

I am trying to post 3 files and json to an API, I am just a bit confused on how to do it export const postfunc = createAsyncThunk( "dashbaord/postfunc ", async (filesSelected, ThunkAPI) =...
Fares Saleh's user avatar
-1 votes
1 answer
1k views

How to properly handle axios API errors in createasyncthunk

What I would like to achieve is to have a global error handler for my API calls when using react-redux. I would like it redirect to a 404 page when a 404 status code is thrown, or a maintenance page ...
wojg21's user avatar
  • 93

15 30 50 per page
1
2 3 4 5
30