codesandbox / codesandbox/codesandbox-client

Hot Module Reloading not working with Named export

Open
#6,143 1 comment 0 reactions 1 assignee View on GitHub

@DeMoorJasper is already working on this.

Since Sep 17, 2021.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

I'm using named import in ./App.js to import a function that console some value. When I edit that function, changes are not getting reflected. But if I use default export it's working fine.

With named import: https://codesandbox.io/s/react-forked-3hnx8?file=/App.js
with default import: https://codesandbox.io/s/react-forked-kb3zs?file=/App.js

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.