Android: type the key screens reload on (stream: Any / version: Any) #335
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
StateListScreen,NoteScreen,TimesheetScreen,TaskFilterSheet,ActivityScreen,ActivityShardsScreenandConfigScreentakestream: Anyorversion: Any?and pass it as the key of aLaunchedEffect, so that they ask again when the stream is another one. Today the key is theStreamobject of the bindings, handed down asAny.The type says nothing about what is expected. Any value compiles, and the screens hold on to a bindings object they must not use.
Proposal
StreamVersionvalue class over a counter thatStreamSessionincrements on every newReady, carried inStreamState.Ready.Any.Found in a review of the Android app.