slate icon indicating copy to clipboard operation
slate copied to clipboard

Browser reload delay

Open radmedov opened this issue 5 years ago • 7 comments

This repo is currently on low maintenance. See README for details

Problem

Hi everyone, Lately, the browser reloads too early and not picking up the changes in the files. Have to reload manually one more time. So annoying. Could anyone advise how to fix it? Was trying to set reloadDelay to browserSync config, however, it isn't working.

Thank you.

radmedov avatar Aug 20 '19 16:08 radmedov

Going through the same exact issue, I have to reload to view changes :/

I'm only running into this problem with section and snippet files. CSS and the index.liquid edits work just fine. Is it with all files for you?

GuillermoCasanova avatar Aug 20 '19 20:08 GuillermoCasanova

I'm having the same issue with CSS and JS mostly - liquid seems to be working as expected.

I added a delay to my browsersync but it's not helping, I always have to manually reload. Seems like the file on the server isn't be cache-busted but not sure where the problem lies.

cshold avatar Aug 27 '19 17:08 cshold

Bizarre that you're running into the inverse with the file types.

I ultimately gave up and went back to using V0. However, it's behaving unexpectedly where sometimes changes come through in the browser and sometimes not, so I have to save Sublime Text a couple times before the change comes through live.

This is after reinstalling npm, node, and all dependencies, short of reinstalling my OS.

GuillermoCasanova avatar Aug 28 '19 13:08 GuillermoCasanova

Started to see this too.

lmartins avatar Sep 04 '19 18:09 lmartins

We have noticed this issue since past few weeks. We thought it was our network winding us up. Leaving a comment to get any update on this.

soulzzprajapati avatar Sep 05 '19 04:09 soulzzprajapati

Found the workaround for this issue: Go to: node_modules/@shopify/slate-tools/tools/webpack/hot-client.js And wrap window.location.reload(); into setTimeout function. Like this:

setTimeout(function() {
    window.location.reload();
}, 1500); // Delay

radmedov avatar Jan 18 '20 01:01 radmedov