Skip to content

Allow preventing default actions of client.js #5763

@Artur-

Description

@Artur-

Clear and concise description of the problem

Some users have brought up that they want live reload temporarily disabled.

The use case is that they are modifying styles in the browser inspector instead of modifying the project files. Once they are done with styles modifications, they go through their changes and copy them to the project files. If you have live reload enabled when you do this then a full page reload can take place after the first changes are copied to a project file and that file is saved. When this happens, all remaining changes are lost.

Suggested solution

Allow listeners like vite:beforeFullReload to call payload.preventDefault() which will stop client.js from taking any actions.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions