question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow sending a result back without navigating up

See original GitHub issue

ResultBackNavigator currently always navigates back, but it would be nice if there’s a way to send a result to the previous destination without also navigating back.

My use case is that I have a screen where something can be edited that needs to be communicated back to the previous destination, but the navigation itself only needs to happen when the user presses the back button or the back arrow in the toolbar. The result itself is optional in that sense. In the current implementation I can also workaround this by using my own BackHandler but it would be nice if there would be a little bit more flexibility for returning results.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
raamcostacommented, Feb 10, 2022

Closing as it was fixed in 1.3.1-beta release!

1reaction
raamcostacommented, Feb 7, 2022

Then I think this is fine, I will do this change for next release. Thank you again @hvisser

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Jetpack Compose navigate for result - Stack Overflow
I want to be able to navigate from screen A to screen B. Once B does something and pops off the back stack,...
Read more >
Provide custom back navigation - Android Developers
Implement custom back navigation; Activity onBackPressed() ... This usually allows Android to properly navigate to previous destinations ...
Read more >
How to go back to another stack navigator? goBack / pop ...
PROBLEM: from Dashboard Landing screen, if I do navigation.navigate('AccountDetails'); it takes me to AccountDetails ,. but while going BACK ...
Read more >
Returning Data to Previous Screens in Android Applications
However, in some cases, you need to navigate back from the “next” screen to the “previous” one and return some kind of data...
Read more >
<iframe>: The Inline Frame element - HTML - MDN Web Docs
The HTML element represents a nested browsing context, ... The Referer header will not be sent to origins without TLS (HTTPS). origin :...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found