inertia-rails
inertia-rails copied to clipboard
The Rails adapter for Inertia.js.
### Versions: - `inertia_rails` version: 3.0 ### Describe the problem: The javascript event listeners are not attached to the HTML even after `hydrating`. Example: let's assume there is an event...
Looking at the generators I was checking that the vue installer only works for webpacker apps, which in Rails 7 is not gonna be the main way to go. Will...
## Goal This PR refactors how `inertia_share` is storage inside the request lifecycle. ## Solution The solution was to sticky with default rails conventions, using only instance variable to storage...
## Notes We're seeing an issue with `shared_data` making our specs non-deterministic, depending on the running order of our tests (i.e. where a particular controller spec passes individually but fails...
Hi there, One nice feature of ActiveModelSerializer-based rendering is the implicit serialization of instances of ActiveRecord::Base. See: https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/getting_started.md#rails-integration Would there be any appetite or interest for this behavior with the...
In the after_action I get an error, where the cookie is null: require_relative "inertia_rails" require_relative "helper" module InertiaRails module Controller extend ActiveSupport::Concern included do before_action do # :inertia_errors are deleted...
Like React, the convention for Svelte components is to use proper case (LikeThis) but Rails expects the default paths to be lowercase. It works (so far) if I change it...
Hello, I found a bug in the InertiaRails::Renderer#partial_keys method in lhs, ```ruby def partial_keys # return a symbol array (@request.headers['X-Inertia-Partial-Data'] || '').split(',').compact.map(&:to_sym) end ``` and at rhs, AbstractController::Rendering#view_assigns ```ruby def...
As initial request and subsequent requests are handled with different renderers sometimes we may end up in situation where controller action may fail just in one of those cases: https://github.com/inertiajs/inertia-rails/blob/master/lib/inertia_rails/renderer.rb#L19L28...
Hi! I've stumbled upon a very specific error when an Inertia page is served from the browser cache: 1. First, HTML page is accessed, response is cached 2. Then, a...