score:1

If you just want the first channel every-time and only update it if the first channel changes, something like this should work:

React.useMemo(() => props.SetFirstChannel(Channels[0]), [Channels[0]]);

I set this up locally and checked. Let me know if it works. Cheers!


Related Query

More Query from same tag