Canton dApp Booster
    Preparing search index...

    Return shape of useTokenList. byId is built from tokens, so the two never disagree.

    const { tokens, byId } = useTokenList()
    const selected = byId.get(storedId) ?? tokens[0]
    interface UseTokenListResult {
        byId: ReadonlyMap<string, Token>;
        tokens: readonly Token[];
    }
    Index
    byId: ReadonlyMap<string, Token>
    tokens: readonly Token[]