Skip to content

Losing Snippet when accidently leaving page #165

@mouse0270

Description

@mouse0270

Yesterday I was working on a demo using Try.MudBlazor and in about 45 minutes into getting it to work I accidentally refreshed the page of my browser losing everything.

I am used to coding sites like Codepen that will alert the user they are about the leave and lose progress but it appears on Try.MudBlazor you just lose everything.

I noticed that issue #7 was made closed to remove this exact functionality.

My suggestion would be to do one of the following:

  1. Only prevent leaving the page if the user has compiled and not saved. If the snippet let the user leave, if they compile again, renable until they save again.

  2. Provide a button in the sidebar that will let the user toggle the feature on or off. This will let users who are worried about losing data to enable the functionality well leaving all other users unaffected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions