It's too fucking frequent that we do this:
const [mediaSet] = useMedia();
const [media, setMedia] = useState<Array<MediaModel>>([]);
useEffect(() => {
if (!isResult(mediaSet)) return;
setMedia(Array.from(mediaSet));
}, [mediaSet]);
Using sets is a good pattern so far BUT it's inconvenient in most cases when you just directly hook the SWR live sets into your GUI.
It'd be nice to have another hook which would simply wrap the clientHook you'd use and play this given game ( ͡° ͜ʖ ͡°)