Data through USB-C hub



I would like to know is it possible to connect PC or RPI through usb hub? I have already bought USB-C hub, but neither PC nor RPI can’t send data to TB through usb hub. With the power everything is OK. So the main idea is to take the data from two sources and send it to TB (not simultaneously certainly), without having to manually change the cable.

Rpi connection to TB by USB