Fast refresh not working with HOC (withForm)
Describe the bug
I noticed that no one has raised this before, but if you try to use withForm HOC form composition, you lose the fast-refresh:
Could not Fast Refresh ("SomeComponent" export is incompatible). Learn more at https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports
Your minimal, reproducible example
tanstack-form
Steps to reproduce
- Create a component that uses withForm
- Edit file
- Check the app
Expected behavior
As a developer, when I edit file with withForm HOC, the app should fast refresh.
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
- OS: Mac
- Browser: Chrome
TanStack Form adapter
react-form
TanStack Form version
v1.23.8
TypeScript version
No response
Additional context
No response
@bitabs Please assign me this issue
@id-87 I don't have permission to assign you for some reason
So should I work on it and raise a pr for now @bitabs ?
If you have a proposed solution for it, feel free to open a PR for this issue @id-87
Sure mate @id-87 I just came across this bug when using it. Feel free to open a PR
@LeCarbonator Mind assigning @id-87 to this issue?
Not sure why that's needed, but if you'd like it, sure.