GT-2288 Update circuit to v0.19.1 #3367
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.18.2
->0.19.1
0.18.2
->0.19.1
0.18.2
->0.19.1
0.18.2
->0.19.1
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
slackhq/circuit (com.slack.circuit:circuit-test)
v0.19.1
Compare Source
2024-02-12
This is a small bug fix release focused
SaveableBackStack
consistency andFakeNavigator
API improvements.FakeNavigator.awaitNextScreen()
not suspending.FakeNavigator.resetRoot()
not returning the actual popped screens.Navigator.peekBackStack()
andNavigator.resetRoot()
returnImmutableList
.BackStack.popUntil()
return theImmutableList
of the popped records.FakeNavigator.peekBackStack()
return theImmutableList
of the popped records.FakeNavigator
. This should offer much more information about the events.BackStack
instance inFakeNavigator
+ allow for specifying a user-provided instance.FakeNavigator
unless using a customBackStack
.goTo
event.rememberSaveableBackStack()
.Navigator()
factory function.v0.19.0
Compare Source
2024-02-09
Navigation with results
This release introduces support for inter-screen navigation results. This is useful for scenarios where you want to pass data back to the previous screen after a navigation event, such as when a user selects an item from a list and you want to pass the selected item back to the previous screen.
See the new section in the navigation docs for more details, as well as updates to the Overlays docs that help explain when to use an
Overlay
vs navigating to aScreen
with a result.Support for multiple back stacks
This release introduces support for saving/restoring navigation state on root resets (aka multi back stack). This is useful for scenarios where you want to reset the back stack to a new root but still want to retain the previous back stack's state, such as an app UI that has a persistent bottom navigation bar with different back stacks for each tab.
This works by adding two new optional
saveState
andrestoreState
parameters toNavigator.resetRoot()
.There are times when saving and restoring the back stack may not be appropriate, so use this feature only when it makes sense. A common example where it probably does not make sense is launching screens which define a UX flow which has a defined completion, such as onboarding.
New Tutorial!
On top of Circuit's existing docs, we've added a new tutorial to help you get started with Circuit. It's a step-by-step guide that walks you through building a simple inbox app using Circuit, intended to serve as a sort of small code lab that one could do in 1-2 hours. Check it out here.
Overlay Improvements
AlertDialogOverlay
,BasicAlertDialogOverlay
, andBasicDialogOverlay
tocircuitx-overlay
.OverlayEffect
tocircuit-overlay
. This offers a simple composable effect to show an overlay and await a result.OverlayState
andLocalOverlayState
tocircuit-overlay
. This allows you to check the current overlay state (UNAVAILABLE
,HIDDEN
, orSHOWING
).OverlayHost
as@ReadOnlyOverlayApi
to indicate that it's not intended for direct implementation by consumers.Overlay
as@Stable
.Misc
NavEvent.screen
public.Navigator.popUntil
to be exclusive.Navigator.peek()
to peek the top screen of the back stack.Navigator.peekBackStack()
to peek the top screen of the back stack.backStack
.BackStack.Record
as@Stable
.onRootPop
of the AndroidrememberCircuitNavigator
.2.7.0
.1.5.12
.1.6.1
.2024.02.00
.1.5.9
.0.23.2
.2.4.9
.1.16.0
.1.9.22-1.0.17
.Special thanks to @milis92, @ChrisBanes, and @vulpeszerda for contributing to this release!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.