solid-refresh icon indicating copy to clipboard operation
solid-refresh copied to clipboard

Hot reload break with anonymous top level component

Open SarguelUnda opened this issue 1 year ago • 0 comments

Describe the bug

When using top level anonymous export default function () the hot reload break in some part of the tree

Steps to Reproduce the Bug or Issue

Reproduction : https://github.com/SarguelUnda/solidrefresh-hr-issue

npm i # or yarn or pnpm npm run dev # or yarn or pnpm

Go to App.tsx and change "Hello world" to another text, the hot reload notification is sent to the terminal but the webapp doesnt hot reload. The issue does not arise if you give a name to the function

Expected behavior

The hot reload work event when using anonymous function

Screenshots or Videos

Platform

OS: Windows
Browser: Chrome and Firefox

Additional context

Maybe related to #64

SarguelUnda avatar Apr 23 '24 14:04 SarguelUnda