Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raamcosta authored May 5, 2024
1 parent 8457ec0 commit 3242f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ⚠️ WARNING - `1.11.3-alpha` / `2.1.0-beta02` and above (Compose 1.7)

## **DO NOT call `NavController.navigate` function** anywhere
## - **DO NOT call `NavController.navigate` function** anywhere
With the introduction of type safe APIs on the official library, our `NavController` extension functions that received `Direction` are now shadowed by new member functions on `NavController`.
This means that the official member function would be called instead of our extension functions, and so we removed those extension functions.
Instead, always make sure to use `DestinationsNavigator`. You can get one of such navigators by:
Expand All @@ -13,7 +13,7 @@ Instead, always make sure to use `DestinationsNavigator`. You can get one of suc

Read more about these changes [here](https://github.com/raamcosta/compose-destinations/releases/tag/2.1.0-beta02).

## **DO NOT depend on jetpack compose navigation directly**
## - **DO NOT depend on jetpack compose navigation directly**
Compose Destinations provides the correct version transitively.
So, if you have dependency on `androidx.navigation:navigation-compose`, please remove it! This has always been true, but more important now.

Expand Down

0 comments on commit 3242f9b

Please sign in to comment.