Pelletyze — Update #9: Give more feedback

Wow, I wrote this post nearly 2 months ago. Why didn't I publish this one?

Currently, I'm on a path to improve the UX a bit by giving more feedback on actions.

Last time I brought a CSV import error to the frontend, which otherwise failed silently and had been a requirement from the start.

The next step is to show a success message after the user imported CSV Data successfully. The difficulty here was, that I didn't want to convert my import component into a client component. So I was unable to use useActionState. My solution now is, that I created a Catch-all Segments route. Now, after a successful import, I can simply redirect to this page and show a success message. Which is not ideal, and I would prefer something like useActionState for server components, but it is what it is.


18 of #100DaysToOffload
#pelletyze
Thoughts? Discuss...