Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Twilio Conversations SDK getSubscribedConversations() slow on React Native vs Web #782

@mailtotesting33

Description

@mailtotesting33

i am working with twilio/conversations.

i know it is not the right place to raise the issue but twilio/converstaions package didn't have a git repo to raise the issue.

i have a React web and React Native mobile application

client.getSubscribedConversations()
.then(async (paginator: any) => {
let hasNextPage = paginator.hasNextPage,
tempPaginator = paginator,
tempChannels: any[] = paginator.items;
const newChannels: any = await TwilioService.getInstance().parseChannels(tempChannels);
let channels = sortChannelsByMsgs(newChannels);
loadMoreChannels(paginator, thunkApi, tempChannels);
const uniqueArray = getUniqueArray(channels);
return uniqueArray;
})
.catch((e: any) => {
return rejectWithValue(e);
});

getSubscribedConversations() function is taking time to load 8s on web, but taking 40-55 seconds on mobile (React Native App)

if anyone can suggest what i am doing wrong here

"@twilio/conversations":"^2.6.3"
"react": "17.0.2",
"react-native": "0.68.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions