Skip to content

Conversation

eymar
Copy link
Member

@eymar eymar commented Jun 23, 2025

The function can have fewer parameters: it doesn't need to have a window parameter, because it's a singleton, and we can access it implicitly.

This change simplifies the fun main common code (k/js and k/wasm), since no need to access w3c window API on the client side.

Fixes: https://youtrack.jetbrains.com/issue/CMP-8427

Release Notes

Features - Navigation

  • A new API was added to bind the browser navigation state with the NavController - suspend fun NavController.bindToBrowserNavigation. And the existing function suspend fun Window.bindToNavigation is deprecated now.

The function can have fewer parameters: it doesn't need to have a `window` parameter, because it's a singleton, and we can access it implicitly.
@eymar eymar requested a review from terrakok June 23, 2025 10:04
Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eymar please track this change on YT and add labal that it requires Documentation update

`js(...)` is not available in shared k/js and k/wasm source sets
@eymar eymar requested a review from MatkovIvan June 23, 2025 13:31
@eymar
Copy link
Member Author

eymar commented Jun 23, 2025

@MatkovIvan could you please review the new API? Need 2 approvals for API changes.

Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sounds like not Highlights but regular feature. Please change release notes before merging

@eymar eymar merged commit 19f54c6 into jb-main Jun 23, 2025
11 checks passed
@eymar eymar deleted the ok/simplify_cfw_navigation_api branch June 23, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants