Skip to content

Broken and incompatible types for inertia render function #5094

@enso-san

Description

@enso-san

Package version

7.3.0

Describe the bug

Because of the new "type safe" idea for inertia pages and properties its no longer possible using custom and dynamic structures.

I have a big project which has some form of plugins. Each plugin lies in its own folder with own controllers, models and also frontend components.

Now when using the inertia render function the IDE always complains because the page component path is a string, but should be a "never". Also the optional second parameter is required and no longer optional and forces me to use transformers for my page props although those are already strict typed and correctly serialized as im using mongoose schemas for this.

Sadly v7 breaks my whole project and forces me to use additional and absolutely unnecessary code and structures.

Image Image

Reproduction repo

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions