Comments (4)
It should be possible, but I don't think it's good practice, you can load your data from the data source depending on the parameters you get from the route, you can use this as a guideline.
from precompose.
@Tlaster sorry I probably explained it backwards, i am loading the data once I enter a screen already -
the scenario i am trying to prevent is if I am on "Route A", and a navigation event leads to "Route A" again, then that screen will be reloaded even tho I am already on that route and i want to prevent that
from precompose.
Sorry for the late reply, it's been a busy week for me.
Yeah, that makes sense, I'll get it working later.
from precompose.
@Tlaster no worries, rest is more important.
I actually got this working here -- #24
The tests pass, but I am not sure if this might be too naive of a solution :-)
from precompose.
Related Issues (20)
- [BUG] rememberNavigator returns different instances inside and outside of NavHost HOT 3
- Very high memory usage on ios when upgrading to 1.6.0 HOT 2
- [BUG] 1.6.0-rc03 快速场景跳转没问题了,但随之而来的是,android端的返回键不能返回了 HOT 2
- Back animations sped up + stop working when interrupted in the middle HOT 2
- Support for Google's Viewmodel which recently went multi-platform HOT 5
- [BUG] [Android] NavHost launching the initial route twice! HOT 4
- Can I use bottom navigation in precompose? HOT 5
- [BUG] koinViewModel in precompose-koin not consistent across platform HOT 7
- [BUG] 按下系统的返回键,在过渡动画结束前快速连按返回键,会无限重复这个过渡动画,直到我手速没跟上 HOT 1
- [BUG] ViewModel onCleared never called and viewModelScope is never cancelled HOT 2
- [BUG] spaceToSwipe wasn't changing anything HOT 2
- ViewModel cached for same compose funtions HOT 4
- [Feature request] Expose AnimatedContentScope driving the animations into individual screens HOT 6
- [BUG] Nested Navigation Group with Bottom Navigation HOT 1
- [BUG] ModalBottomSheet with nested NavHost breaks the Composition HOT 2
- [BUG] ModalBottomSheet NavHost animateContentSize issues HOT 3
- [BUG] Rapid back navigation breaks layout on Android HOT 2
- [BUG] Precompose 1.6.0 pulls androidx.compose.ui:ui-test-junit4-android in the runtime classpath HOT 1
- Navigating is losing Screen state HOT 8
- [BUG] Click device ' s backpress .
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.