|
8 | 8 | use NeoIsRecursive\Inertia\PageData; |
9 | 9 | use NeoIsRecursive\Inertia\Props\AlwaysProp; |
10 | 10 | use NeoIsRecursive\Inertia\Props\DeferProp; |
11 | | -use NeoIsRecursive\Inertia\Props\LazyProp; |
| 11 | +use NeoIsRecursive\Inertia\Props\OptionalProp; |
12 | 12 | use NeoIsRecursive\Inertia\Support\Header; |
13 | 13 | use NeoIsRecursive\Inertia\Tests\TestCase; |
14 | 14 | use NeoIsRecursive\Inertia\Views\InertiaBaseView; |
@@ -366,7 +366,7 @@ public function test_lazy_props_are_not_included_by_default(): void |
366 | 366 | { |
367 | 367 | $request = $this->createInertiaRequest(Method::GET, uri: '/users'); |
368 | 368 |
|
369 | | - $lazyProp = new LazyProp(fn() => 'A lazy value'); |
| 369 | + $lazyProp = new OptionalProp(fn() => 'A lazy value'); |
370 | 370 |
|
371 | 371 | $response = new InertiaResponse( |
372 | 372 | $request, |
@@ -394,7 +394,7 @@ public function test_lazy_props_are_included_in_partial_reload(): void |
394 | 394 | Header::PARTIAL_ONLY => 'lazy', |
395 | 395 | ]); |
396 | 396 |
|
397 | | - $lazyProp = new LazyProp(function (): string { |
| 397 | + $lazyProp = new OptionalProp(function (): string { |
398 | 398 | return 'A lazy value'; |
399 | 399 | }); |
400 | 400 |
|
@@ -425,7 +425,7 @@ public function test_always_props_are_included_on_partial_reload(): void |
425 | 425 | ]); |
426 | 426 |
|
427 | 427 | $props = [ |
428 | | - 'user' => new LazyProp(function (): array { |
| 428 | + 'user' => new OptionalProp(function (): array { |
429 | 429 | return [ |
430 | 430 | 'name' => 'Jonathan Reinink', |
431 | 431 | 'email' => 'jonathan@example.com', |
|
0 commit comments