Problems in the use of react and redux

suppose the state in redux looks like this:

state = {
    value:"aaa",
    list:["123","321","12231"]
}
The

A component is an input,input whose value corresponds to the value in state.
B component is a list,list content that needs to be obtained based on the value value request API, such as http://api.com?query=aaa
as shown in the figure:
clipboard.png

when the value of An is updated, the list is retrieved and component B is rendered. The normal logic is as follows:
change event sends an asynchronous action request for a new list = > Update list in redux state = > component B rendering

The problem with

now is that you cannot add code to the A component change event for some special reason. Can you listen for value changes and update list? from the row in component B?
if you get and update list, in componentWillMount , it will only be executed once when the B component is initialized, but not again when the value changes.
if you add a method to get and update list in componentWillReceiveProps , because it is asynchronous, it will result in circular requests and rendering.

ask for help!

Jul.18,2021

seems to have found a solution, if there is a better way, please correct!

static getDerivedStateFromProps(nextProps) {
    const { value } = nextProps;
    getAndUpdateList(value);
    //  null 
    return null;
}

so, after initialization, the component will get list , and value will also update list

when it changes.
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-1b2b3d9-2ba8d.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-1b2b3d9-2ba8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?