I have a React Hook component named List for example with an arbitrary number of children called Entry (adding or removing is possible). If data for an Entry changes, how can I update it without re-rendering the parent which will re-render all its siblings which may be huge. I would like to avoid useRef and useImperativeHandle, first because my codes becomes more complex and using react-sortable-hoc makes it impossible to use them.
How can a React parent component with arbitrarily many children update a selected child by its string id without using useRef?
86 views Asked by Gia Thuan Lam At
1
There are 1 answers
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in ECMASCRIPT-6
- Doesnt update state after successfully fulfilled Reducers
- Adding values dynamically inside useState in ReactJS
- removeEventListener for transitionend not working
- several compilation errors in Typescrip+express+typeorm
- Is there a way to console log/error and return from a function in one line using ES6 syntax?
- "no lockfile entry" while importing remote JSON over http
- React and Material-UI Autocomplete Multiple Items
- When I run the server in javascript and combine html and tsx formatted files and present them to the server, I get an error in css
- Why is assigning a value to super in the constructor in the ES6 standard? It is assigning a value to an instance of the class
- Router cannot be exported when using es6 syntax
- In node using modules. how to change require to import for stripe
- Add callback function to tailwind "duration" animation
- TypeError: Named parameters can only be passed within plain objects, while trying to handle Sqlite errors using ES6 arrow functions
- error in the operation of the -dev flag NPM
- Is Map a set of keys (JavaScript the Definitive Guide - David Flanagan) or a set of key-value pairs (MDN)?
Related Questions in REACT-HOOKS
- Page in React only renders elements after refreshing
- Hooks are not supported inside an async component error in nextjs project using useQuery
- Updating objects of key array pairs without mutation
- Creating custom history back and forwards buttons using a React hook
- Why array find returns nothing? using context and params
- Why functoin in useEffect does not accept parameters?
- react test with useEffect, axios and useParams
- Change react-hook-form input value with custom hook
- getting React Hook "useSetupInterceptors" cannot be called at the top level when try to use useSignOut hook
- React useContext returns it value but it returns undefined after page is refresh
- Problem with locomotivescroll nextjs typescript working
- How to use React-Testing-Library (RTL) to unit test a component with internal hook that uses ajax and state?
- how to stop rerenders when using a custom hook (maximum depth exceeded)
- Using Next.js Suspense with getServerSideProps for streaming response
- Custom Export Button Text Becomes Undefined When Using useEffect in Canvasjs
Related Questions in WEB-ARCHITECTURE
- Does Node JS API data flow
- What is the Approach To Migrate Web Application
- Seperate Web Framework From Main Application
- Best architecture practice to improve performance of ecommerce website hosted in India to overcome the Great Firewall of China
- flask application structure for multiple apps and database connections
- Does it make sense to define a GET /users/{id}/photos route or should I just send multiple GET /photos/{id} requests to return a user's photos?
- Defining two separate API endpoints for essentially the same logic just for the sake of avoiding REST anti-patterns?
- What combination of services in AWS should I use for a system with high availability?
- How can a React parent component with arbitrarily many children update a selected child by its string id without using useRef?
- Nodejs Database configuration based on accessed domain
- What is the benefit of adding AWS Cloudfront on top of AWS Application LB?
- Modern web-applications architecture
- Best way to add a React frontend to a existing Node.js / Express REST API backend
- Best practices for a JAMstack blog?
- PWA - Progressive Web Applications Architectures
Related Questions in REACT-SORTABLE-HOC
- react-sortable-hoc Error while building develop enviroment, Type 'Element' is not assignable to type 'ReactNode
- manual even trigger using Sortable
- Losing focus of an input field in a React application after typing one character
- How to prevent an item from being dragged outside a grid container in react-sortable-hoc?
- Re-render issue when trying to make a sortable collection of notes with react, tinymce and react-sortable-hoc
- How do I disable the reordering of an element in react-sortable-hoc. Passing disabled prop to SortableListItem doesn't work properly
- Sortable multi select component not re-rendering with updated selected values
- How to prevent component from rerendering on every order change using react-sortable-hoc?
- React Sortable Trees and Title / Tooltip for every node
- Material UI table rows drag and drop
- React-sortable-hoc transition doesnt work
- add custom style to react-sortable-tree
- TypeError: Cannot set property 'name' of undefined on "onChange" event using React-Sortable-hoc
- Sorting the grid in xy axis using react-sortable-hoc
- div styles disappear while dragging elements
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
No child component can re-render if its parent doesn't. You should instead prevent re-render for your
Entrycomponent by usingReact.memoorshouldComponentUpdate, so that children that haven't changed won't be re-rendered.