useHotUpdaterStore()
A store related to updates.
progress
is a number representing the bundle download progress. It has a value between 0 and 1.
When isBundleUpdated
is true
, it means the bundle download is complete and the update will be applied when HotUpdater.reload()
is called. The isBundleUpdated
becomes true
when the progress
value reaches 1.
You can optimize your component renders by using selectors to subscribe only to specific parts of the state. This prevents unnecessary re-renders when other parts of the state change.