score:1
Accepted answer
the binding you mentioned isn't happned automagically.
i think it should be enough to put the decoration call in componentwillupdate()
callback as well.
componentwillupdate(nextprops, nextstate){
this.newchildren = decorateinputs(nextprops.children, nextstate.fields);
}
read more about compontent lifecycle.
Source: stackoverflow.com
Related Query
- React state change doesn't rerender cloned children
- React hooks, provide context but don't rerender children on state change
- react component state change after ajax call but does not rerender component
- React parent pass children will trigger rerender without state/props change
- Rerender Component upon state change in React
- React render component even though state doesnt change
- React component not rerender on state change
- React component doesn't rerender after state change in Safari
- React Hoooks: change children state from parent
- React doesn't rerender on state change while testing
- React doesnt rerender component when props value is being change
- React Functional Components change state of parent from child without rendering all children
- Component doesnt rerender on state change
- Change children state from parent component in React JS
- React state change does not result in a rerender
- React hooks - Prevent rerender if parent state that holds children props changed
- React Hooks: Rerender even though state didn't change
- Redux state change but react will not Rerender
- React - bubble up state to change className on children
- React Component Does not Always Rerender After State Change
- Updating state on props change in React Form
- React Child Component Not Updating After Parent State Change
- React js change child component's state from parent component
- React component not re-rendering on state change
- react change class name on state change
- React-redux component does not rerender on store state change
- How to change props to state in React Hooks?
- React Hooks - useEffect fires even though the state did not change
- Change state when properties change and first mount on React - Missing function?
- React shouldComponentUpdate() is called even when props or state for that component did not change
More Query from same tag
- react-hook-form: How to validate when either of two fileds are required
- Modal component - onClick event
- Why my state argument when creating my Redux-Reducer is not being updated?
- How to pass a document fetched from firestore to local state in react
- Cannot use process.env in React component, but can import it in webpack.config.js
- need help accessing Firestore sub-collection?
- How to change background color of ul li elements in autosuggest react component?
- How to detect when ReactJS has finished page manipulation?
- react.js push new matched values of array into existing one by js map method
- Axios not updating state from API in function called on Click, but works on identical function on Component Mount in React
- Show object's value text depending on select option
- How to get response after a function call in React JS?
- Hypertexting by pasting a link using a toolbar
- Why does JSON.parse throw a cross-origin error?
- Unhandled Rejection (TypeError): Object(...) is not a function
- Most efficient way to replace string with emoji
- Not able to access session storage while page routing in reactjs
- axios get request for real-time data
- form.validateFields() doesnt work when we have custom antd form component
- How to find arithmetic operator and assign it and its index to globally accessible variable?
- react bootstrap navbar collapse hamburger button does not show nav items
- First attempt at AWS Amplify with NodeJS gives 404 page not found
- How to pass props as a HTML tag to react element in dash plotly
- Is it possible to change value in element without changing state?
- Promise Error mapping data from backend in React
- loading="lazy" in CSS or JS (React)
- Working with DOM elements in react testing-library?
- how to convert the binary data to image in reactjs
- Are there any method to ignore the css affections of other leaf pages and parent pages to my react pages
- how to remove the dotted line from an anchor tag or Link tag in react?