I’m thinking of buying a Tp Link Archer T4u WiFi usb dongle. But I would like to know from someone that has one of these if it works fine out of the box.
From TP Link support, there are available driver for Linux but for old kernel. It could be work with newer kernel but not always.
May be you want to read this github readme page to see other options.
I was able to use this adapter on Fedora 36 (kernel 5.18.5-200.fc36.x86_64) by compiling this driver: GitHub - cilynx/rtl88x2bu: rtl88x2bu driver updated for current kernels.