Mini Program started to report an error.

error prompt


Expected updated data but get first rendering data;Expected updated data but get first rendering data
Error: Expected updated data but get first rendering data

reporting an error in local development does not affect the use of Mini Program, but an error occurred when testing on the mobile phone. How to solve this? it literally means that I was using it when globaldata was not initialized. I didn"t look at the code like this. I don"t appreciate it if I ask God for a hint!


still hasn't been solved. This error is reported from time to time.


when globalData is not assigned a value in app.js, it jumps to the page that calls globalData data in advance, so it leads to rendering failure. Try to boot or load the page to buffer the data.

Menu