mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
Merge pull request #2352 from ecency/sa/cache-subscribed-communities
user communities load glitch fix
This commit is contained in:
commit
e41ac34853
@ -87,7 +87,6 @@ const CommunitiesContainer = ({ children, navigation }) => {
|
||||
setIsSubscriptionsLoading(true);
|
||||
getSubscriptions(currentAccount.username)
|
||||
.then((subs) => {
|
||||
setIsSubscriptionsLoading(false);
|
||||
subs.forEach((item) => item.push(true));
|
||||
getCommunities('', 50, null, 'rank').then((communities) => {
|
||||
communities.forEach((community) =>
|
||||
@ -100,6 +99,7 @@ const CommunitiesContainer = ({ children, navigation }) => {
|
||||
|
||||
setSubscriptions(subs);
|
||||
setDiscovers(shuffle(communities));
|
||||
setIsSubscriptionsLoading(false);
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
|
Loading…
Reference in New Issue
Block a user