--- title: Historical Debt of API date: 2023-10-11 author: zombieJ --- You may have received this warning when upgrading Ant Design: ```text Warning: [antd: XXX] `old prop` is deprecated. Please use `new prop` instead. ``` This is because antd has some historical debt in API design. For example, in antd v3 and before, the code of TreeSelect was directly copied from Select and extended on this basis. There are differences in their search styles: Select TreeSelect And in the maintenance process, developers want to control the content of the search box. Unfortunately, this requirement was PR by different developers at different times. So two different properties were added, one called `inputValue` and the other called `searchValue`: ```tsx // Select in combobox mode, the search box is the input box, `inputValue` looks reasonable