I'm working an project with esp32 and a nextion 7".
I have an issue.
When i change the page, then the variables flash for a moment(the default values, at 0:16).
All of the variables are global, so the issue is just once. If i've been on a page, then after it is good.
I don't use any nextion library.
Nice looking display, I wish I knew how to make them look as good as that
If you don't want default values to show when you go to a page then leave them blank when you define the variables in the Nextion IDE.
I don't know the answer then. Maybe experiment with pre and post initialisation events, but I am only guessing. It might be something you have to accept.
I solved the problem.
I send all variables on the display with global addressing when I turn it on.
For example, I'm on the page0, then I send it to the page2: Page2.t20.txt