Skip to main content

All Questions

1 vote
1 answer
1k views

CORS error redirecting from Node.js to React after login

I am having trouble redirecting from the server side of my Node.js app to the client side React app after a successful login. I have a function that creates a JWT token and redirects the user after ...
quahvaen's user avatar
1 vote
1 answer
1k views

Rtk query get request data returning undefined

I am trying to send a get request using rtk query and store that in local storage using redux persist //I have tried to view the token in the console,it is appearing const {data , isSuccess }= ...
randeepsarma24's user avatar
0 votes
2 answers
4k views

onSuccess and onError not being fired in rtk query

const [login] = useLoginMutation({ onSuccess: () => { console.log("Success"); setAlertType("success"); setAlertMessage("Login ...
Ephraim Becker's user avatar
1 vote
1 answer
2k views

Websockets with RTK Query configuration issues

I am trying to implement a Websocket connection from a React TypeScript app using RTK query. At the moment I am just trying to connect to a local socket.io server BUT ultimately it will be an AWS API ...
SamBrick's user avatar
  • 781