HotUpdater.reload()
By default, the shouldForceUpdate
flag is false
, the bundle is downloaded but not applied until the user restarts the app.
Calling HotUpdater.reload()
reloads the app. If there is a completed update bundle ready to be applied, it will be applied immediately.
The shouldForceUpdate
flag simply downloads the bundle and calls reload immediately.
You can use it as shown below, but it is recommended to use it together with the `useHotUpdaterStore().progress value.
Refer to useHotUpdaterStore() for more information.