Empower growth and innovation with the latest Mobile App insights

When users scroll down several screens in an order list, open a detail page, and come back to the top again, is the list reloading every time?

Oct 26, 2026 Read: 63

Conclusion first: when users open a detail page from a list and then return, and the list scrolls back to the top, it is usually not because the page was destroyed and reloaded; rather, no one is responsible for saving and restoring the scroll position as state. Under common Mini Program runtime mechanisms in 2026, the previous page instance usually remains in the page stack when returning. What actually loses the position is often onShow refetching data, reflow caused by undetermined image heights, or scrolling happening inside a scroll-view while restoration is done with page-level methods. A recommended order of diagnosis is: first check whether the API is requested repeatedly, then check which layer the scroll container is on, and finally decide whether to add position memory.

1. First distinguish whether the page was reloaded or the position was not restored

These two cases look very similar but require completely different fixes. When the page is truly reloaded, onLoad is triggered again, the list API is called again, and returning to the top is only a side effect; when the position is not restored, the data may not have changed at all, and only the scroll container's offset has been reset to 0. Changing code without distinguishing them easily mixes up API caching, the page stack, and scroll restoration.

The cost of diagnosis is low: add one log in onLoad and one in onShow, then see which one is triggered after returning; also check whether the network panel shows repeated requests to the same list API. If onLoad is not triggered again and the API is not resent, it is basically certain that the issue is the scroll offset, and there is no need to look in the data layer.

  • onLoad is triggered only once, but the list is at the top after returning: this points to scroll position not being restored.
  • onLoad is triggered again after returning and the API is requested again: the page was rebuilt; first check whether the navigation method used something like redirectTo that replaces the page stack.
  • The scroll position is correct, but the content changed, for example the order or filter conditions were reset: the problem is in state management, not scrolling.

2. Why the position is lost: data, rendering, and container layers

The first is refetching data. Many projects refresh the list in onShow to get inventory or status changed on the detail page; the habit itself is not wrong, but after refreshing, the list is re-rendered from the first page of data, so the scroll position naturally returns to zero. The second is reflow: list items contain images or rich text whose height is uncertain before rendering. After the position is restored, once images expand, the content shifts up or down as a whole, and the user no longer sees the original item.

The third is choosing the wrong container. Page-level scrolling and scrolling inside a scroll-view are not restored in the same way: the former requires calling page-scroll-related APIs, while the latter requires setting scroll-top or the corresponding scroll property. Mixing them leads to 'the code was written but has no effect'. This is also a detail that is relatively easy to underestimate in 2026 projects.

  • Data layer: onShow refetches unconditionally, and the pagination cursor is reset.
  • Rendering layer: image heights are not reserved, line height changes after font loading, and the position drifts after restoration.
  • Container layer: page scrolling and scroll-view scrolling are mixed, and the restoration call is made on the wrong layer.

3. Treat scroll position as state: record, store, correct, and fallback

Scroll restoration is not a trick but a very small state flow. By delivery habit, it can be split into four steps: record, store, correct, and fallback. The benefit is that each step has a clear acceptance criterion, and when something goes wrong, you can locate which part failed instead of saying vaguely that 'returning did not go back to the original position'.

  1. Record (when to record): record the current offset when the page is about to navigate away, not casually in onHide. Recording at the moment a list item is tapped to navigate ensures that what is recorded is the position when the user left.
  2. Store (where to store): storing in a page instance variable is suitable for immediate use on return; storing in local cache is suitable across sessions, but it must include an expiration time, otherwise the user will still be at the previous position the next day and may think the list is broken.
  3. Correct (correct after restoration): setting the value does not mean it is done; add a correction after images finish loading or the list finishes rendering, to avoid height changes pushing the position off.
  4. Fallback: when the number of data items decreases, for example after filtering out delisted products, the position must converge to a valid range, and a large value beyond the list length must not be forced.

Acceptance criteria can be written very concretely: open the detail page from the 20th item, stay for a few seconds, and after returning still see around the 20th item, while the list API has not re-requested the first page of data. If this is not met, it means the timing of recording or the correction step has a problem.

4. Comparison of three approaches: typical ranges for cost and timeline

The cost differs greatly across lists. Choosing an approach by scenario first is more efficient than building a generic component right away. Below is a comparison based on common project scale in 2026; costs are given as experience ranges and depend on list complexity and whether the project is split into subpackages.

  • Approach A: do not refetch data; keep the page stack — small change; the typical range is from half an hour to two hours to verify; suitable for lists whose content changes infrequently; the trade-off is that after changes on the detail page, returning may show old data.
  • Approach B: record the offset and refresh incrementally in onShow — medium change; experience range is half a day to two days; refresh only the currently visible items or update only status fields without reflowing the entire list, balancing data freshness and position.
  • Approach C: pagination cursor plus anchor positioning — larger change; typical range starts from two to three days and involves the data layer and virtual list; suitable for long lists, content feeds, and scenarios with strong position awareness.

Selection criteria can be simplified to one sentence: if users frequently move in and out of the list, the benefit of scroll restoration usually outweighs the extra code; if the list is only one screen, or every return means the filter conditions have changed, then it should honestly return to the top.

5. In delivery: which two places to fix first when the budget is tight

A common situation in projects is: budget and timeline are tight, the list has images and many fields, restoration is quite accurate on Android, but on iPhone it is always off by several items. At this point, it is not advisable to jump straight to Approach C. First fix the two things: 'when to record' and 'image height reservation'. Most projects can reduce the deviation to an acceptable range at this stage; the remaining drift can then be handled separately for each specific list. Based on experience ranges, fixing these two places usually takes about half the work of directly changing the data layer, but the specifics still depend on image aspect ratios and rendering methods.

A checklist to verify before delivery: whether the offset is recorded before navigation, whether restoration happens after rendering is complete, whether images are given a fixed aspect ratio, and whether the position converges when the number of items decreases. Shipping without checking these four items commonly costs a round of rework after release. Although the change may not be large, it requires going through the test and release process again, which makes the schedule more passive.

6. Applicable and non-applicable boundaries

Position restoration is suitable for list pages that users enter and leave repeatedly, have long lists, and may include images in every item, such as product lists, order lists, and content feeds. On such pages, one return to the top often means the user has to scroll through dozens of items again, and churn happens at this step.

Conversely, when the list is only one screen, the filter conditions will change after returning, or the page itself is a search results page, there is no need to deliberately add position memory — restoring to a position that does not match the current filter is more likely to confuse users. Position restoration is an experience optimization, not a standard feature that every list must have.

FAQ

After returning to the list, it stays in place, but the data is old. Is that a problem?

It depends on the fields: for strongly time-sensitive information such as inventory and price, incremental refresh is recommended rather than refetching the whole table; for other fields, staying in place is usually acceptable. Acceptance should be based on whether key fields are updated.

I set scroll-top in scroll-view, but why does it still not scroll back?

Most often the value has not changed, or it is set earlier than data rendering. A common approach is to clear it first and then assign the value, or set it once in the callback after list rendering is complete, rather than setting it directly in onShow.

When the list has many images, the position is always off by a few items. Is that related to loading speed?

It is related, but the root cause is often that images do not reserve space and their heights are filled in later. After giving image containers a fixed aspect ratio, the deviation in position restoration usually converges noticeably, and it has little to do with network speed.

Android is normal, but iPhone has a larger deviation. Do I need two separate implementations for different device models?

Generally no. The difference mostly comes from scroll bounce and rendering timing. A unified correction after rendering is complete is enough; writing separate implementations by device model increases maintenance cost instead.


If you have a list page that users enter and leave every day, you can start with one small thing: add offset recording before navigation and correction after rendering, observe return behavior for a week, and then decide whether to touch the data layer. The applicable scope is mainly long lists; for lists within one screen or with frequently changing filter conditions, returning to the top is actually the less troublesome choice.

Interested in this topic?
10-year tech team — reference proposal within 24 hours
Obtain Proposal
Are you ready?
Then reach out to us!
+86-13370032918
Discover more services, feel free to contact us anytime.
Please fill in your requirements
What services would you like us to provide for you?
Your Budget
ct.
Our WeChat
Professional technical solutions
Phone
+86-13370032918 (Manager Jin)
The phone is busy or unavailable; feel free to add me on WeChat.
E-mail
349077570@qq.com
Submitted successfully
Thank you for your trust. We will contact you soon!
Recommended projects for you