Skip to content

Commit

Permalink
Changelog for 0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielittner committed Jun 12, 2024
1 parent d0cff6e commit 09fdf53
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
Change Log
==========

## 0.26.0 *(2024-06-12)*

### Navigation

- Introduces `HostNavigator`. This was previously an internal type used within
`NavHost` to execute navigation events. It's now possible to create a
`HostNavigator` with `rememberHostNavigator(...)`, pass that instance to `NavHost`
and use it to navigate directly without the use of navigation events. It is safe
to reference `HostNavigator` outside the UI layer.
- `DestinationNavigator` is a replacement for `NavEventNavigator` that delegates
to `HostNavigator`, which means it also works without navigation events. The
advantage of using this over using `HostNavigator` directly is that
`DestinationNavigator` supports activity results, which `HostNavigator` doesn't.
- The `navigate {}` function that allows grouping multiple navigation events
is now more efficient. The `NavHost` will only be updated once at the end and
not between the actions of such a group.
- `NavEventNavigator` will be removed in one of the next releases.

### Codegen

- A `HostNavigator` is automatically created in the `NavHostActivity` component.
- It's required that a `NavRoot` is provided into the scope of a `NavHostActivity`.
- Each `NavDestination` now requires an `ActivityResultNavigator` to be provided into
the scope (previously `NavEventNavigator` was required).

## 0.25.0 *(2024-05-17)*

### Navigation
Expand Down

0 comments on commit 09fdf53

Please sign in to comment.