Problems with network connection after switching USB LAN hub (despite using wifi connection)
Unfortunately this is a known issues with some USB-C hubs and can mostly be blamed on shielding, some devices are worse, some better. There‘s less of an issue with 5GHz WiFi networks if that‘s an issue. Some people have also reported that wrapping metal foil around the USB-C cable works. But your best bet is probably switching your USB-C hub.

More information can be found in this thread: USB-C Dongles killing Wifi on 2016/2017 MacBooks – Who’s to blame?