Closed drgarlic closed 1 year ago
Based on the code you provided, it seems that I did not reproduce your issue, this may be a hot update issue with Vite. Can you still repeat this issue when you refresh the page?
export default () => {
console.log('run app/index.tsx')
return <div>hey</div>
}
is not a component solid-refresh can manage, see: https://github.com/solidjs/solid-refresh#how-it-works
@lxsmnsyc thanks, read it then forgot about it ! (if it's possible it would great if it wouldn't allow such files)
This was just a reproduction, I'll update my codebase and see if it'll fix all the reload duplicates
it would great if it wouldn't allow such files
solid-refresh doesn't do anything if it can't manage the component.
Noted.
I confirm that exporting named functions works much better, I suppose it's better practice anyway.
Thanks again !
Describe the bug
Hi !
I just initialized a new a TS project with the almost default
index.tsx
(it's not important but I suppose you may want to see it)The problem is that with the following the following
app/index.tsx
Which don't happen with the following code:
Your Example Website or App
.
Steps to Reproduce the Bug or Issue
app/index.tsx
Expected behavior
Not duplicate
Screenshots or Videos
https://github.com/solidjs/solid/assets/32246972/140ec1b2-0120-4de9-a49f-096e145d60bf
Platform
Additional context
No response