Comments (3)
This is by design, if you want to keep the state in your HomeScene, please use a ViewModel or molecule with integration to store your state.
from precompose.
close as inactive
from precompose.
Can someone please provide an example on how to solve this?
Edit: To clarify, I'm confused because regular jetpack compose navigation has a restoreState
parameter for this:
// ...
navController.navigate(screen.route) {
popUpTo(navController.graph.findStartDestination().id) { saveState = true}
launchSingleTop = true
// Restore state when reselecting a previously selected item
restoreState = true
}
from precompose.
Related Issues (20)
- iOS like gesture navigation back UI glitch HOT 3
- Does it support web browser history ? HOT 1
- Very High recomposition with Scene Block HOT 7
- navigator.currentEntry.collectAsStateWithLifecycle always returns null on iOS HOT 5
- iOS crash during backward swipe HOT 6
- Popback Stack with popUpTo HOT 2
- 如何在初始化NavHost的时候 对默认scene 添加launchSingleTop 与 goBack的时候导致页面重组 HOT 11
- Can we pass more complex data classes to screen? HOT 2
- Sample ToDo app crashes with KoinCompose 1.1.2 HOT 1
- Version 1.5.10 breaks animation progress inside screen HOT 2
- invoking goBack will break navigation if nav transitions are used HOT 3
- Deeplinks are not working HOT 3
- Using floating() with SwipeProperties breaks the floatings scenes HOT 1
- Please add support for named route HOT 3
- Usage of viewModelScope crashes on Desktop HOT 1
- Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8 HOT 4
- Various problems occur when using nested NavHost HOT 3
- 关于生命周期方法,onResume, onPause 相关的问题 HOT 13
- back button doesn't close floating scene HOT 3
- Sliding transition HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from precompose.