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
This package supports [lazy](https://spatie.be/docs/laravel-data/v4/as-a-resource/lazy-properties) properties, which can be manually included or excluded.
19
+
This package supports [lazy](https://spatie.be/docs/laravel-data/v4/as-a-resource/lazy-properties) properties, which can
20
+
be manually included or excluded.
19
21
20
-
Inertia has a similar concept called [lazy data evaluation](https://inertiajs.com/partial-reloads#lazy-data-evaluation), where some properties wrapped in a closure only get evaluated and included in the response when explicitly asked.
21
-
Inertia v2 introduced the concept of [deferred props](https://inertiajs.com/deferred-props), which allows to defer the loading of certain data until after the initial page render.
22
+
Inertia has a similar concept called [lazy data evaluation](https://inertiajs.com/partial-reloads#lazy-data-evaluation),
23
+
where some properties wrapped in a closure only get evaluated and included in the response when explicitly asked.
24
+
Inertia v2 introduced the concept of [deferred props](https://inertiajs.com/deferred-props), which allows to defer the
25
+
loading of certain data until after the initial page render.
22
26
23
27
This package can output specific properties as Inertia lazy or deferred props as such:
24
28
@@ -57,9 +61,36 @@ router.reload((url, {
57
61
});
58
62
```
59
63
64
+
#### Deferred property groups
65
+
66
+
It is possible to group deferred properties together, so that all grouped properties are loaded at the same time. In
67
+
order to achieve this, you can pass a group name as the second argument to `Lazy::inertiaDeferred()`:
0 commit comments