score:1
Accepted answer
in submithandler method, you are not passing pic variable in updateuserprofile.
use this
dispatch(updateuserprofile({ id: user._id, name, email, password, pic }));
Source: stackoverflow.com
Related Query
- Can't update the profile picture using cloudinary
- Cant dynamically update the React app using component
- How to dynamically update the value for any input field with one event handler function, using hooks
- Using hookrouter with create-react-app fails to update the view on navigation change
- How to update multiple object children fields using the ES6 spread?
- How to update select items based on the selection from the first select items using react
- How do I update an array using the useContext hook?
- update the array of object using useState hook
- I need to execute a function that will update the state right after using setState hook, but state inside function is empty?
- how to delete all data and the update the page without refreshing using useEffect
- How to update the url of a page using an input field?
- How to update the state of nested json object in react using hooks
- How to update the correct state value in a parent component that gets its value from a child component using hooks in react?
- How to update an array by index using the useState hook?
- ReactJS useState hook: Can I update array of objects using the state variable itself?
- Working of push in react while using redux to update the state
- How do I update an object's state keeping the existing elements using useState hook?
- React: update state with form data onChange using the spread operator
- cant update context state when using hooks with a complex object to set providers value
- How to update the array of objects using onChange handler in React JS?
- How can I update component in React after adding a new item into the database, using react hooks?
- Using useState hooks to update based on the previous state successively
- update the state in React JS array using useSatate
- How to update a reused variable using the same function without isolating it into another component?
- How to update redux state using a react variable passed up to the component from a child
- I cant get the localStoarge data, i'm using useEffect Hook
- React Hooks: updating state using useState does not update the state immediately
- How to get react test using moxios to update the DOM before running later part of the test
- how do i update state in react for updating the value of an object inside an array using array.map function
- using spread operator to update the state on different levels
More Query from same tag
- How to use json object keys in api url
- How to enable hot reloading via shared folders with Vagrant VM?
- MVC6 How to remove bower from project
- React imported function returns undefined
- @types/prop-types/index has no default export
- Can't pass proper value in form, react
- React Handling Events
- How can you write less, repetitive code for a useReducer hook in React?
- Multi-line split of very long text on canvas (adding line breaks)
- ReactJS component hiding for React developer tools
- React App on Heroku responds to all requests with index.html
- Make a webm blob into a file to upload to server
- React Search - I'm trying to create a filter and it doesn't work
- How to make links work with card-img-overlay React
- How do I configure axios in react to retrieve data with an objects id from an api?
- Unable to render state, but can console.log it
- SyntaxError: invalid increment/decrement operand
- how to calculate the value from one input without eval() in react
- Convert this Responsive Blog Card Slider made using HTML, CSS and Swiper js into React js with Swiper js
- Beginner Confusion: Four Quadrant Selection Grid in a Pop-Up Form Using Material UI & React
- How to import js file to React component?
- React storing prop value from outcome of loop
- TypeError: Cannot read properties of undefined (reading 'split'). Same Error using Slice too
- How do I create an event that Formik's handleChange will like?
- React call setTimeout at onClick seems not to wait
- Passing Parameters to Components in React Native
- How to enable watch for webpack MERN?
- Trying to map over array of objects in React, returning undefined
- Unable to get props.children while using Provider in React
- How do I send search result back to client side?