mirror of
https://github.com/tooot-app/app
synced 2025-01-03 13:10:23 +01:00
Fix conversation view append timeline jump
This commit is contained in:
parent
702ecef243
commit
71e0c88cc2
@ -82,10 +82,11 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
|
|||||||
if (ancestorsCache.current?.length) {
|
if (ancestorsCache.current?.length) {
|
||||||
switch (Platform.OS) {
|
switch (Platform.OS) {
|
||||||
case 'ios':
|
case 'ios':
|
||||||
|
await new Promise<void>(promise => setTimeout(promise, 128))
|
||||||
for (let [] of Array(
|
for (let [] of Array(
|
||||||
Math.ceil(ancestorsCache.current.length / PREV_PER_BATCH)
|
Math.ceil(ancestorsCache.current.length / PREV_PER_BATCH)
|
||||||
).entries()) {
|
).entries()) {
|
||||||
await new Promise<void>(promise => setTimeout(promise, 64))
|
await new Promise<void>(promise => setTimeout(promise, 8))
|
||||||
queryClient.setQueryData<{ pages: { body: Mastodon.Status[] }[] }>(
|
queryClient.setQueryData<{ pages: { body: Mastodon.Status[] }[] }>(
|
||||||
queryKey.local,
|
queryKey.local,
|
||||||
old => {
|
old => {
|
||||||
|
Loading…
Reference in New Issue
Block a user