Jetpack-Compose-ChatApp-Template icon indicating copy to clipboard operation
Jetpack-Compose-ChatApp-Template copied to clipboard

Why `nestedNavGraph`and `bottombar ` initialized multiple times?maybe..

Open est7 opened this issue 2 years ago • 4 comments

When I enter HomeScreen, I find that the nestedNavGraph function is executed twice and the bottombar function is executed twice, is this a normal response? image

est7 avatar Feb 07 '23 06:02 est7

Thanks for reporting. I will be taking a look

dmitriy-chernysh avatar Feb 07 '23 10:02 dmitriy-chernysh

Composition will execute multiple times, draw only once, I dont know if drawbehind can be used for watch draw how many times,I just added this method to Scaffold and found that it was executed once.

est7 avatar Feb 07 '23 10:02 est7

I'm really new to compose...

est7 avatar Feb 07 '23 10:02 est7

@est7 sry for offtop, what them do u use?

Sharabaddin avatar Apr 22 '23 09:04 Sharabaddin