score:0
setdynamicchildren() {
this.setstate({
children: this.getchildren()
});
}
is there a reason your intermixing redux state and local class state changes? from my experience this is asking for weird behaviour. i would swap this.setstate
for this.props.dispatch(action...)
to update the redux store state. do you still have issues when the complete state is now in redux? otherwise a snapshot of redux dev tools state changes would be helpful in these cases.
Source: stackoverflow.com
Related Query
- Dynamic Children Injection and Redux Binding
- How React Testing Library can assert children props and Redux store updates?
- ReactJS - Dynamic Component Name with closing tag and children elements
- Rendering a redux component with and without children
- Having difficulty iterating through an Object of Arrays and generating dynamic React elements in JSX from within the Redux Store
- Read Dynamic Height of Inner Components Off Children in .map() and Set New Height in Outer Components based on Inner Components Height
- Dynamic children navigation in React.js (propagating events and properties)
- Two way binding of URL hash and Redux state
- Is it possible to load dynamic data on load, and children on click without setting children inside parent state?
- Children prop triggering re-render when using map and redux
- Creating a dynamic button in React and Redux
- TypeScript and React - children type?
- Difference between component and container in react redux
- Can anyone explain the difference between Reacts one-way data binding and Angular's two-way data binding
- React / Redux and Multilingual (Internationalization) Apps - Architecture
- How to sync Redux state and url hash tag params
- When to use native React.useReducer Hook and how it differentiate from Redux
- React - how to capture only parent's onClick event and not children
- Difference between : Redux and Relay
- How to divide the logic between Redux reducers and action creators?
- What is the difference between Redux Thunk and Redux Saga?
- Dependency Injection in a redux action creator
- How to separate UI and application state in Redux
- What is difference between reducers and extrareducers in redux toolkit?
- Relay vs Redux vs Apollo with GraphQL and React-Native
- Cannot read property '.then' of undefined when testing async action creators with redux and react
- How to Implement dynamic routing in routes.js for generated menu items in sidebar in universal react redux boilerplate by erikras
- error: getstaticpaths is required for dynamic ssg pages and is missing for "yyy". nextjs
- Using compose() and connect() together in React JS redux
- Dealing with local state in react and redux
More Query from same tag
- Uncaught typeError : (//some function) not a function
- React, Graphql schema type declaration
- React native build error: Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()
- Semantic React Modal weird height behavior
- How to wait for one request to finish, till the other can get executed on Express/Node?
- tailwind css margin class not applying margin to component, react
- Validate a form using a provider ReactJS
- The container gets exited with react app in ECS
- Build Netflix footer dynamically with Reactjs
- Why does @emotion/styled not render the styled component on screen?
- How to use Theme in material UI with React + Next.js?
- Can't get Nested JSON Object Property Typescript
- Toggle div visibility in react js
- SharedArrayBuffer is not defined
- How to have a separated file in js that handles the API response in Reactjs
- ReactJS in an existing HTML
- Jest + React Testing Library: Portals are not being cleaned up
- Stop Webcam in React Component in ComponentWillUnmount
- Invoking servlet through React app using Fetch API - Gives Failed to load Resource error (406 - Not Acceptable)
- How to initialise state with useState hook and Typescript
- How to mock $.ajax call in JEST
- What is the deciding factor for react dev tools to say that a particular react version used in a website is outdated?
- TypeError: Cannot read properties of undefined (reading 'map') Trying to Read REST api and display
- How to make a button click add selection in react-select dropdown?
- ESLint: "'prop-types' should be listed in the project's dependencies", but "prop-types" is already included with "next" npm package (react/prop-types)
- useParams hook returns undefined in react functional component
- Why my ExpressJS is not able to get the static directory?
- Animate the search list when typing on the searchbar (React)
- How to serve React app and Api on same node server?
- How can I make use of REST with <Resource ...> for a custom page