ursus
10/13/2021, 10:20 PMNavigation component
thing require serializable arguments AGAIN? I thought compose was new start and trying to lift this limitation.
This means I'll serialize/deserialize objects to json on main thread, right?
And let me guess the advice is to not pass in complex argument .. great.ursus
10/13/2021, 10:38 PMIan Lake
10/13/2021, 10:40 PMIan Lake
10/13/2021, 10:40 PMursus
10/13/2021, 10:42 PMIan Lake
10/13/2021, 10:43 PMursus
10/13/2021, 10:46 PMList<Story>
You'd want to have the "to be displayed" stories set to some static cache, generate a key, set the key as event payload, and on the ui receiveing end, navigate to StoriesScreen with that string key argument, and pull the data from the cache on the other end?Ian Lake
10/13/2021, 10:48 PMStory
data?ursus
10/13/2021, 10:49 PMStoriesChecker.newStoriesFound : Flow<Event<List<Story>>>
as sort of event bus, that list is not kept anywhere to be pulled fromIan Lake
10/13/2021, 10:51 PMursus
10/13/2021, 10:54 PMursus
10/13/2021, 10:54 PMclass Activity {
onCreate {
scope.launch {
storiesChecker.newStoriesFound
.collect { stories ->
screens.push(StoriesScreen(stories))
}
}
}
}
something like thisIan Lake
10/13/2021, 10:57 PMursus
10/13/2021, 10:57 PMIan Lake
10/13/2021, 10:58 PMursus
10/13/2021, 11:01 PMIan Lake
10/13/2021, 11:07 PMursus
10/13/2021, 11:08 PMIan Lake
10/13/2021, 11:15 PMursus
10/13/2021, 11:17 PMIan Lake
10/13/2021, 11:28 PMIan Lake
10/13/2021, 11:30 PMursus
10/13/2021, 11:30 PMursus
10/13/2021, 11:33 PMursus
10/13/2021, 11:40 PMIan Lake
10/13/2021, 11:46 PMursus
10/13/2021, 11:53 PMursus
10/13/2021, 11:57 PMIan Lake
10/14/2021, 12:01 AMrememberSaveable
) precisely for state that needs to be saved over process death and recreation, but not persisted to diskIan Lake
10/14/2021, 12:02 AMtad
10/16/2021, 7:49 PM