Edited on June 4.
I have already solved this problem, but I would like to understand why my workaround works:
Problem:
I have a ListView that displays items with a background color conditionally set based on whether a document reference matches a Page State. When a container inside a list item is tapped, it sets the Page State to that document reference โ which works as expected visually. It also passes the document reference into a child component, which has a backend query to fetch details about that document.
However, the issue is that the backend query triggers a full rebuild of the page, causing the ListView to lose its scroll position and jump back to the top.