I have two pages A and B, I navigate from A to B by navigation
, how can I update the content of A in B.
Both A and B have ViewModel
Asked
Active
Viewed 295 times
0

gaohomway
- 2,132
- 1
- 20
- 37
-
See https://stackoverflow.com/a/70631089/753632 - You can pass data back that can inform your previous screen to update. Another approach is to use Jetmagic which handles updating any screen from anywhere in your app. See https://github.com/JohannBlake/Jetmagic – Johann Feb 19 '22 at 15:44
-
Check out [this answer](https://stackoverflow.com/a/64961032/3585796) – Phil Dukhov Feb 20 '22 at 02:27