Hello! Quick question… I’m building a webapp using compose web and I wanted to know if there is a tool of command line argument to help diagnose why the website was completely reloaded? Why a component is redrawn?
Thanks 🙂
m
MrPowerGamerBR
06/24/2022, 3:03 PM
As far as I know there isn't a way to figure out why a component was redrawn. What I like doing is adding some "println" statements and checking what I'm doing on the page to cause the component to be redrawn.
s
Sebastien Leclerc Lavallee
06/27/2022, 2:15 AM
Thanks! I’ll double check but pretty sure where it’s happening. I have a localization service and when I change language, the whole site is reloaded when I would think only redraw the strings 🤔 🤷🏻♂️
d
Dragos Rachieru
07/14/2022, 2:53 PM
Try to use more composable methods, if you have a lot of code in a single method, it will redraw everything inside
What you can do is create a modifier extension that will print something when redrawing