Skip to content

Investigate triggering onLoad from native side to notify JS of Turbo URL changes #231

@piaccho

Description

@piaccho

Description:

In #230, we added a fix to keep the native iOS visitableURL in sync using a Key-Value Observer on WKWebView.url. This resolved a pull-to-refresh regression. However, there’s still a sync concern between the native and JS sides that was brought up during discussion.

Discussion points:
• Would triggering onLoad on the JS side help ensure tighter sync between native state and the actual page state?
• How can we do this cleanly without relying on hacky solutions like monkey-patching history API?
• If we do this for iOS, should we also consider it for Android to ensure consistent behavior across platforms?

This needs further investigation and should be handled separately to keep the previous PR focused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions