-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Hello ๐
I'm looking for a way to customize the InertiaRails::Renderer
class. Some things I'd like to do are:
- Instrument individual code paths with OpenTelemetry (e.g. the HTTP call for SSR)
- Implement custom error handling/messaging for SSR errors (currently suppressed by Inertia with an implicit fallback to CSR)
- Cache SSR responses (similar to is it possible to cache ssr response inside an action?ย #251)
- Automatically transform props to camel-case (similar to Auto-serialization of ActiveRecord modelsย #68 (comment))
Currently, I work around this by performing the SSR network call manually and rendering that HTML to the same layout that Inertia would render. This isn't ideal, as I have to recreate some of the functionality that Inertia already handles well (the InertiaRails::Renderer
class).
I'd be happy to put a PR together if this sounds like something you'd allow.
Metadata
Metadata
Assignees
Labels
No labels