getData
const list = createQuery(listQuery);const detail = createQuery(detailQuery);const index = .. // get this somehow;const getData = (cb) => cb(list.data[index]) ?? cb(detail.data)const name = () => getData(v => v?.name)
query
["groups"]
["group", number]