Skip to content

Handle hot reload refresh when disableDomPreservation = true #50790

Open
@captainsafia

Description

The current resolution to #49144 in dotnet/sdk#35450 triggers an enhanced navigation to force the browser to reload a statically server-side rendered page if it has been modified by a hot reload action.

Per dotnet/sdk#35450 (comment), the experience doesn't work super well when DOM preservation is disabled. The result of this is as follows:

  • For statically rendered pages, the page refresh is not triggered.
  • For non-statically rendered pages, the notification UI (checkbox animation on the top left of the view) is not displayed since it is hooked onto the enhancedload event.

We should consider a fallback for this. We could trigger a page refresh on the hot reload event but this takes us back to the original dilemma of being able to determine if a given page has been statically rendered or if it has any components backed by a live rendered on it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Pillar: Dev ExperiencePriority:3Work that is nice to havearea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-hot-reloadThis issue is related to the Hot Reload feaature

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions