Closed arkivanov closed 5 months ago
The recent updates to the Decompose library involve refining the attach
function signatures within the WebHistoryController
interface and its implementations. These changes enhance the handling of web navigation events by introducing a Function2
parameter that facilitates the comparison of new and old navigation stacks, thus allowing more nuanced decision-making in response to navigation changes.
File Path | Change Summary |
---|---|
decompose/api/android/decompose.api |
Updated attach function in WebHistoryController to include a Function2 parameter. |
decompose/api/decompose.klib.api |
Modified attach function in WebHistoryController and DefaultWebHistoryController to include a Function2 parameter. |
decompose/api/jvm/decompose.api |
Revised attach methods in WebHistoryController and DefaultImpls to use a Function2 parameter. |
decompose/src/…/WebHistoryController.kt |
Changed onWebNavigation function to accept newStack and oldStack instead of just configurations . |
decompose/src/…/DefaultWebHistoryController.kt |
Updated DefaultWebHistoryController callbacks to accept two parameters for navigation events. |
decompose/src/…/DefaultWebHistoryControllerTest.kt |
Modified test cases to reflect the updated attach function with two-parameter callbacks. |
decompose/src/…/TestWindow.kt |
Improved runPendingOperations method to ensure all operations are executed using a while loop. |
🐰 In code we trust, with changes grand, Function2 joins our valiant band, From stack to stack, we'll navigate, With new and old, we demonstrate. Amid the tests, assertions rise, Our code refined before our eyes.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
WebHistoryController
to handle navigation events with additional parameters, improving flexibility for different use cases.Bug Fixes
Tests