• Get user list from query. default query uses 'instance.createApplicationUserListQuery' The response type of hook is depends on return type of 'query.next()'

    You can call hook with your custom query using CustomQuery Or you can create your 'CustomQueryClass' implemented CustomQueryInterface'

     const { users } = useUserList(sdk, {
       queryCreator: () => {
         const friendQuery = sdk.createFriendListQuery();
         return new CustomQuery({
           next: () => friendQuery.next(),
           isLoading: () => friendQuery.isLoading,
           hasNext: () => friendQuery.hasMore,
         });
       }
     })
    

    Type Parameters

    Parameters

    Returns UseUserListReturn<QueriedUser>

Generated using TypeDoc