inaturalist / iNaturalistReactNative

Cross-platform version of the iNat mobile app
MIT License
54 stars 16 forks source link

Show unsynced observations before all others in MyObs #1577

Open kueda opened 2 months ago

kueda commented 2 months ago

Currently we just sort MyObs by _created_at, which means that any unsynced observations will get buried under newly-created observations on the web or in other apps. Instead,

This will probably involve some weird ordering code.

kueda commented 3 weeks ago

@budowski this approach works but it's very slow, so I'm temporarily reverting it. When I had 450+ observations this sort operation was taking 1.6-1.8 seconds, making it really slow to load MyObs, navigate to ObsDetail, and come back to MyObs.

Not sure what the better approach might be here. Maybe we need to pre-compute a sort value and store that in Realm?