[lib] Use specs to determine hash value for top-level infos
Summary:
Create convertedInfos where hashKeys are used as keys and access this object to determine for which entries we should compute a hash.
https://linear.app/comm/issue/ENG-4813/migrate-getclientresponsesselector-to-a-spec
Depends on D9030
Test Plan: Modify server state and check if state check fixes client state.
Reviewers: kamil, bartek, inka
Reviewed By: bartek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D9031