Hello, I'm using this method ```binding?.bottomApp...
# android
h
Hello, I'm using this method
Copy code
binding?.bottomAppBar?.setupWithNavController(findNavController(R.id.nav_host))
but whenever i tab to any item on bottomBar its calling api again again
😶 6
z
Make it so that your app doesn't do repeated API calls but instead use data that you already got in-memory (as a simple var in your properly scoped ViewModel, whatever) or storage.
h
can you share any example