In the weex sdk, there is a WXSDKInstance class, which has a reload method to configure whether to load data from the local cache or re-request the data from the url. At the beginning, I set it to false. The problem was: after the weex code was modified, the iOS side still displayed the previous code, which was the loaded cache data. Then I set reload to yes. The problem is: after the interface is loaded, it will flash and disappear, or sometimes it will not appear at all; this does not happen every time.
I personally feel that it is not a problem with the network speed. I can’t load it using the 4G network.
Now I want to ask how to solve this problem?
I always thought
reload
只能用来链接debug模式时使用。。。不用它的话,就是销毁当前
weex
Instance, and then go through the creation process again