I got the following error when I was using redux:
I was developing an React App with authenticated with firebase, and use Redux.
I’m very new to React & Redux and am working on the authentication portion of my app.
i want to iterate through an array but Im not sure if i can do this in the useSelector redux hook because it’s not giving me the result that i want. Have any of you ever achieved this? or am i going about it completely wrong?
Recently I decided to change my code from class to functional components. I’m using redux, axios and axiosMiddleware. Since I started changing to functional components I noticed something strange. See the following example which is a request using a dispatch (I’m using connect and mapDispatchToProps):
I am diving into Redux toolkit and made a simple project to understand its concepts better.
I have a MUI dialog component that triggers a useLazyQuery action on save to fetch data.
Then on success dispatches another action
My problem is, that after success, I want to reset the state of the useLazyQuery hook in the dialog component, because after success/fail the state is “stuck” like this in the component.
I am confused how should I approach this…
Dismount and mount the dialog component works but it removes the fadeout animation and also unsubscribe the query endpoint.
Is there a best practice here that I am missing?
Long time no Redux and i am getting rusty.
I’m trying to write a slice for RTK and I’m not sure what the type of my payload should be. My state —
InviteeState is an array of people objects