API reference › @evolu/common › Platform › ReloadApp
type ReloadApp = (url?: string) => void;
Defined in: packages/common/src/Platform.ts:90
Reload the app in a platform-specific way.
On the web, Evolu reloads tabs of a build when another build of the app waits for the local databases, so they load the build the server now serves. It can also clear in-memory state after persistent storage was purged; it does not purge storage itself.
- Web: Reloads the page, or loads the specified URL instead
- React Native: Restarts the app (URL ignored)