235 questions
0 votes
0 answers
362 views
state.cartItems is not iterable
I am new to react. I am not able to figure out the solution. On adding a product to the cart I am not able to see it in the cart scree. Please suggest any changes. The error I am getting is : state....
1 vote
0 answers
34 views
Redux-form: how can I mutate field by onSubmit
I have to clear the Account field if I change the Partner field. How can I do this with the onSubmit event using Redux-form? Example code: <form onSubmit={handleSubmit}> <...
0 votes
1 answer
238 views
React redux form handle submit returns empty object
I've been learning react redux forms from https://redux-form.com/8.3.0/examples/simple/ As shown in the example I have created my form as below import React, { Component } from 'react'; import { ...
0 votes
1 answer
35 views
reset the textbox on specific value of dropdown (in HandleChange()) in Redux form
How to reset a textbox when another dropdown field is changed in redux-form? I tried using dispatch(change()) syntax but I keep getting the following error: redux-form/lib/change could not be ...
1 vote
0 answers
94 views
I am getting Uncaught Error: Maximum update depth exceeded when I tried to pass one custom intermediate function for validate prop of redux form field
My component where I am passing validate prop ->>>> <div className="label-input-container activity-reason-dropdown"> <Dropdown ...
1 vote
2 answers
141 views
Warning: 'A component is changing an uncontrolled input of type text to be controlled' in React.JS
I'm trying to build full-stack project in using MERN stack. I used react-redux to connect backend server. Everything was working fine until this error "Warning: 'A component is changing an ...
0 votes
1 answer
2k views
Error when trying to install react-redux-form
My NPM cannot install react-redux-form for my project. I need assistance, please. C:\Users\folder>npm install react-redux-form@latest --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to ...
1 vote
0 answers
50 views
Reset is not clearing fields [redux-form]
I have form with select dropdown, checkboxes and text fields. When I read redux documentation for reseting fields it gives more than 1 way to clear fields - https://redux-form.com/6.0.0-alpha.4/docs/...
0 votes
1 answer
128 views
sendPasswordResetEmail failed: First argument "email" must be a valid string
I'm doing resetting passwords with firebase auth, but I got the error. Below is my code that I'm using Reactjs with Redux, and Redux-Form. Kindly check it and give me your solution, thank you so much. ...
0 votes
1 answer
38 views
Getting TypeError when returing store data
I am trying to store data from my form component to my store. But when i try to dispatch the action and return the action payload into the state, getting an error which is, TypeError: state.users is ...
0 votes
1 answer
452 views
NextJS component server side rendering with params injection from a caller component
I am building an application with storefront, which uses nextJS. I am able to use getServerSide props while loading a new page. The page contains many components, each needing their own data. At the ...
1 vote
1 answer
674 views
How to clear input field after clicking submit in react js redux
I am developing a small project to learn react redux, I had a good view of connecting react with redux. I am trying to perform a small task that is clearing the input box after hitting submit, I've ...
2 votes
0 answers
51 views
save a different value in the redux store than what is displayed on the frontend
I'm wondering if I can store a different value in the redux form FieldArray than what's displayed on the frontend. Using the example from the docs: Each club has a club name and consists out of ...
1 vote
1 answer
773 views
Getting error in Next js with redux thunk TypeError: nextCallback is not a function [duplicate]
I am getting error in Next js while I am dispatching the action from index.js file The main issue is with this function getServerSideProps, if i comment this function error gone, i don't understand ...
0 votes
1 answer
614 views
How to use ref for "input file" with react redux-form (controlled form)
I'm trying to refer an input file <Control.file /> element to another well styled element and even after googling I didn't find the answer so I'm here with all hope to get an answser. This is a ...