How to debug refreshes on submit with file uploads?
I have
FileUpload
in my form and when submitting the form it refreshes the page. When I remove the file upload from the form, everything works as expected.
Anyone have any idea on how to debug that?
CheersSolution:Jump to solution
Wow! I got it. I'm dumb. Earlier this week I added
public/**
dir to vite.config.js
refresh paths. These uploads go to public/
apparently so Vite is refreshing the page. Nice.4 Replies
This is my component:
Form is as simple as it can be:
So it does do 1 update
As you can see it shows the
sent = true
state for a short time, and then refreshes the page
Without the file upload this doesn't happenSolution
Wow! I got it. I'm dumb. Earlier this week I added
public/**
dir to vite.config.js
refresh paths. These uploads go to public/
apparently so Vite is refreshing the page. Nice.