-
Hi Sbertix, Is there any way to get if there is any change in followers/following list since last fetch. When I check the discussions I saw below item. But I could not understand how I can use this logic. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey @MariaJsn, All you have to do is just cache the followers you get in the first request (using If you only care to know whether a change occurred or not, simply pass the same rank token in every refresh: only fetch 1 page, if you get a different |
Beta Was this translation helpful? Give feedback.
Hey @MariaJsn,
All you have to do is just cache the followers you get in the first request (using
Realm
,CoreData
,UserDefaults
, or whatever you're relying on) and compare them with the ones you get on refresh.If you only care to know whether a change occurred or not, simply pass the same rank token in every refresh: only fetch 1 page, if you get a different
next_id
it means the list has changed.