Support for deferred properties in inertia #935
Replies: 2 comments
-
Hi @matthiasweiss, I think implementing such a thing wouldn't be that complicated, especially since we already have Inertia Lazy props. The thing is naming, since LazyProps now exists for intertia next to deferred props. Feel free to send in a PR adding the feature! If adding support for deferred props, we probably also need to add support for MergedProps: https://inertiajs.com/merging-props |
Beta Was this translation helpful? Give feedback.
-
@rubenvanassche I've drafted up a PR here, though I'm not really satisfied with how it turned out. Maybe you can give some inputs or we can do some bigger refactorings together |
Beta Was this translation helpful? Give feedback.
-
Hello!
Super big fan of the package, great work 👏
I especially love the combination of laravel-data with the typescript-transformers package, makes using Inertia with TS so smooth.
I'd like to know whether there are any plans on supporting Inertia's newly introduced deferred props in laravel-data. To me it would seem like a solid addition, especially since the package already has support for lazy properties.
If not, would this addition fit into your vision for the laravel-data package? Then I could help out with it.
Best, Matthias
Beta Was this translation helpful? Give feedback.
All reactions