Problem: There is A public component A whose parent component B renders A by iterating through the array. Dynamic addition or deletion of an array is the same as dynamic addition or deletion of component A. The problem is that the user is responsible for adding and deleting, so there is no way to give a fixed key at the beginning. In the beginning, index is used as the key value, but adding or deleting components will refresh the key value of previous components, resulting in the state cannot be preserved.
solution:
br> a>
>
Read More:
- A solution to the problem that the number of nodes does not increase and the name of nodes is unstable after adding nodes dynamically in Hadoop cluster
- Higher order components in react
- [W xx:xx:xx.xxx NotebookApp] 404 GET/static/components/react/react-dom.production.min.js (::1)
- Attempted import error: ‘injectglobal’ is not exported from ‘styled components’
- Solve the problem of showing unregistered (unknown custom element) when importing components into Ant Design Pro
- Elasticsearch in Spring uses Spel to dynamically create Index of Documet class
- Solve the problem of dynamically applying for permission, but still reporting an error of open failed: eacces (permission denied)
- Linux dynamically loads kernel modules
- uin-app dynamically set the title
- Elememt UI introduces components on demand to report errors
- Python dynamically imports objects, importlib.import_ Module() uses
- WSL 2 needs to update its kernel components
- Ambari shield big data components
- [flash] error: “necessary system components are not working properly, please repair Adobe Flash Player” and error ා 2046
- A simple method of generating secret key by GIT and configuring SSH public key
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- Handling of expression not in group by key [value] reported by hive on October 12, 2020
- An import error is reported in the python. The solution to setting. Pylintrc is invalid
- Description: Failed to decrypt protected XML node “DTS:Password” with error 0x8009000B “Key not valid for use in specified state
- When feign is called, the solution of request method ‘post’ not supported appears