Closed
Description
Monarch lets users hot reload and hot restart stories on macOS and Windows. On Linux, users can hot reload, however hot restart is not implemented.
We are hoping to get help from the community on this issue.
The CLI dart code already handles the user request to hot restart. What's missing is the platform implementation to close the preview window and open a new one. Below are the implementations on macOS and Windows. The Linux implementation would be similar.
On Windows, see platform/windows/src/window_manager.cpp
, function restartPreviewWindow()
:
On macOS, see platform/macos/monarch_macos/WindowManager.swift
, function restartPreviewWindow()
: