Skip to content

Hot reload refreshes before updating (shows pervious version) #8940

@fredcallaway

Description

@fredcallaway

🐛 bug report

Hot reload triggers a browser refresh (or something resembling it), but it reflect the state of the code before the save event. I need to save the file twice to see the correct version.

🎛 Configuration (.babelrc, package.json, cli command)

// package.json
{
  "name": "graph-nav",
  "version": "1.0.0",
  "description": "Navigation experiments over graphs to characterize hierarchical structure in behavior.",
  "source": "templates/exp.template.html",
  "dependencies": {
    "eslint": "^7.26.0",
    "parcel": "^2.0.0-rc.0"
  },
  "devDependencies": {},
  "scripts": {
    "build": "parcel build --no-scope-hoist --public-url /dist",
    "watch": "parcel watch --public-url /dist --no-cache"
  },
  "engines": {
    "node": "14.x"
  },
}

No babel configuration.

Command:

parcel watch --public-url /dist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions