fix(ios): persist position during page list head changes#1078
fix(ios): persist position during page list head changes#1078alpha0010 wants to merge 2 commits into
Conversation
|
Discovered a potential issue with this implementation, investigating. |
|
So, I am at a bit of a loss. After the following data transition: Page "C" is still correctly the active page, but instead of displaying content, renders blank white. The neighboring pages still render correctly, and if I swipe away and swipe back, "C" will render again. But this error does not occur on initial load, only after using the pager some. Any insights you might have would be greatly appreciated. I feel like I must be missing some fundamental concept, since all my logging and debugging efforts seem to say everything is working as intended. |
|
Documenting my testing:
|
|
What works:
What fails:
I have been unable solve either of these bugs, but since they have workarounds, I cannot really justify spending more dev time on them currently. Marking this as ready (we already use it locally via patches). I think it is an improvement over this library's current status, despite not solving all the dynamic page list related bugs. |
Summary
Dynamic changes to the page list prior to the currently visible page now maintain the same visible page on iOS (this already works on Android).
Fixes #965
Test Plan
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Use the above test screen to add/remove pages before/after the currently visible page. With this PR, iOS should now match the existing Android behavior.
Compatibility
Checklist
README.md