Garzec
Explore posts from serversNeed help understanding preload and file conventions
Hello guys,
I started with SolidStart and want to fetch data before rendering the page, So I found
preload
here https://docs.solidjs.com/solid-start/building-your-application/routing#additional-route-config and started with
It "somehow" works, the preload
function was called. I also created 3 other components in the same directory => notFound.tsx
, pending.tsx
, error.tsx
.
All of those 3 files might need different names, I don't know.
My questions are:
- How do I render a 404 page?
- Is it possible to render a pending page while preloading the data? How?
- How do I render an error page if the preload function throws?
- How do I access the fetched data inside my "success" page?
I wasn't able to find it in the docs and maybe I completely misunderstood the concepts here 🙂 But I know that https://tanstack.com/router handles things this way4 replies
Is it recommended to use Start even if you don't need it?
Hello guys,
I don't need any serverside stuff and would like to know if I should stick to Solid + Router instead? 🙂
Do I get any benefits from Start ( AFAIK it's not batteries included, I still have to install the router package )
9 replies
Which form validation library are you using?
Coming from React I really love https://react-hook-form.com/
Are you guys using Tanstack Form for Solid or what is the "most popular" one? 🙂
6 replies
JCHJava Community | Help. Code. Learn.
•Created by Garzec on 1/12/2025 in #java-help
How to apply request body validation with error details?
Hello there,
I want to apply request body validation to my Spring project
and this endpoint
I thought
@Valid
would handle it for me but actually the API consumer still gets a 400 without any error details. So the consumer doesn't know what's wrong.
After googling around I think Spring doesn't do that for me out of the box. So I created an additional class
Unfortunately the result is the same, the API consumer won't get any error details. Is something missing? Do I even need the ValidationExceptionHandler
? How do I achieve this?
Thanks! 🙂56 replies