Skip to content

On Linux: implement hot restart #70

Closed
@fertrig

Description

@fertrig

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():

void PreviewWindowManager::restartPreviewWindow()

On macOS, see platform/macos/monarch_macos/WindowManager.swift, function restartPreviewWindow():

func restartPreviewWindow() {

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededlinuxRelated to the Linux operating system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions