search

Home  >  Q&A  >  body text

ios - There is a reload method in the weex WXSDKInstance class. The loading interface occasionally fails.

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?

迷茫迷茫2794 days ago1127

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-17 10:06:36

    I always thought reload只能用来链接debug模式时使用。。。
    不用它的话,就是销毁当前weexInstance, and then go through the creation process again

    reply
    0
  • Cancelreply