You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking about how to prevent #1377 from happening again, and I'd like to suggest using Zeitwerk for loading the view_component code, instead of all these autoload and require.
We took this path in view_component-form, so you can have a look at the following PR to see what it took: pantographe/view_component-form#107 (keep in mind that the library is much simpler than view_component).
Feature request
I was thinking about how to prevent #1377 from happening again, and I'd like to suggest using Zeitwerk for loading the
view_component
code, instead of all theseautoload
andrequire
.See here for what it would look like: https://github.com/fxn/zeitwerk#synopsis
We took this path in
view_component-form
, so you can have a look at the following PR to see what it took: pantographe/view_component-form#107 (keep in mind that the library is much simpler thanview_component
).What do you think?
Motivation
See here for the motivation behind Zeitwerk: https://github.com/fxn/zeitwerk#motivation
The text was updated successfully, but these errors were encountered: