[lib][web][native] Refactor updatesCurrentAsOfSelector
Summary: issue: https://linear.app/comm/issue/ENG-5003/refactor-updatescurrentasofselector
Test Plan: Tested that the seletor works by calling useSelector(updatesCurrentAsOfSelector('256')); and printing the result.
Reviewers: michal, kamil, ginsu
Reviewed By: kamil
Subscribers: ashoat, tomek, wyilio
Differential Revision: https://phab.comm.dev/D9685