The idea of component implementation of asynchronism, local and global search

currently has a requirement and a large amount of data, so I use the tree-select component of antd , which basically meets the requirements ( is great ^ ), but the only thing I can"t do is that when I need to query the lowest tree node , I must know which parent node this node belongs to , but because loads data asynchronously, this step is not easy to implement. So we need a function similar to global search . I just want to ask some people, if this kind of scenario, how do you solve it? Thank you

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdc516-312f8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdc516-312f8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?