Skip to content

Excessive autoreload #1023

@Ddystopia

Description

@Ddystopia

When I'm developing, I often need to expect some css etc, but trunk keeps reloading every minute or so without any change. I investigated, that reload is caused by this:

        onclose() {
            window.setTimeout(
                () => {
                    // when we successfully reconnect, we'll force a
                    // reload (since we presumably lost connection to
                    // trunk due to it being killed, so it will have
                    // rebuilt on restart)
                    const ws = new WebSocket(this.url);
                    ws.onopen = () => window.location.reload();
                    ws.onclose = () => this.onclose();
                },
                this.poll_interval);
        }

Note, that my trunk is not restarted, it is running healthily. It is behind my local nginx socket though.

I am forced to constantly kill trunk myself when I want to do anything in the page inspector. It is impossible and frustrating.

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