Practical Examples
Example 1: Todo CRUD
Load todos with SSR, create with a server function, then invalidate the loader.
Example 2: Protected Dashboard
Example 3: Webhook API
Use a Server Route, not a Server Function, for public webhooks.
Load todos with SSR, create with a server function, then invalidate the loader.
Use a Server Route, not a Server Function, for public webhooks.