Move the componentDidMount and componentDidUpdate lifecycle handlers to a useEffect in the outer "Connected" component.
As part of the work to refactor ThreadSettingsModal... specifically to turn it into a functional component (any day now...)
Depends on D3796