Js file updated, weex how to reload the page, using WXSDKInstance.reloadPage (true), does not work

js file updated, want to reload the page (non-restart application), weex how to reload the page, use WXSDKInstance.reloadPage (true), no matter how to reload the page

Mar.12,2021

the simple answer is to re-load the weex instance while destroying the old one.
you probably don't quite understand how weex works. ReloadPage simply reloads the js file that is already in memory-the old one.


[_ instance destroyInstance];
_ instance = [[WXSDKInstance alloc] init];
.
destroy the existing one, then re-create an instance and reload

Menu