inertiajs / inertia-rails

The Rails adapter for Inertia.js.
https://inertiajs.com
MIT License
529 stars 43 forks source link

Configuration: Fix thread handling #46

Closed ledermann closed 4 years ago

ledermann commented 4 years ago

This fixes #45 by reverting parts of #38. IMHO, layout and version are global and must be shared across threads.

To change layout or version at runtime, maybe we need another approach, e.g. by setting parameters in the render :inertia. Using InertiaRails.configure within a controller action seems not right to me.

BrandonShar commented 4 years ago

Thanks @ledermann!