HotupdaterHot Updater
React Native API

reload

Apply a downloaded bundle immediately.

Usage

HotUpdater.reload() applies the currently downloaded bundle immediately.

  • If no new bundle is ready, it reloads the current app code
  • If a bundle was downloaded, that bundle becomes active immediately
  • The exact behavior depends on HotUpdater.setReloadBehavior()
import { HotUpdater } from "@hot-updater/react-native";

async function syncUpdate() {
  const updateInfo = await HotUpdater.checkForUpdate({
    updateStrategy: "appVersion",
  });

  if (!updateInfo) return;

  await updateInfo.updateBundle();

  if (updateInfo.shouldForceUpdate) {
    await HotUpdater.reload();  
  }
}

This is the most common manual usage pattern:

Reload behavior

By default, HotUpdater.reload() uses processRestart.

  • Android: cold process restart
  • iOS: behaves like normal React Native reload

Use HotUpdater.setReloadBehavior("reload") only if you explicitly want the old in-process React Native reload path.