Skip to content

Use Zeitwerk for code loading #1378

Closed as not planned
Closed as not planned
@Spone

Description

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 these autoload and require.

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 than view_component).

What do you think?

Motivation

See here for the motivation behind Zeitwerk: https://github.com/fxn/zeitwerk#motivation

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions