solidjs / solid-refresh

MIT License
85 stars 18 forks source link

Hot reload break with anonymous top level component #67

Open SarguelUnda opened 5 months ago

SarguelUnda commented 5 months ago

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