You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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():
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
, functionrestartPreviewWindow()
:monarch/platform/windows/src/window_manager.cpp
Line 231 in 46d4f79
On macOS, see
platform/macos/monarch_macos/WindowManager.swift
, functionrestartPreviewWindow()
:monarch/platform/macos/monarch_macos/WindowManager.swift
Line 126 in 46d4f79
The text was updated successfully, but these errors were encountered: