Skip to content

Commit f8c682d

Browse files
feat: add defer props support (#2)
* fix: use actual groupby now * fix: version resolver to actually be configurable * chore: update docs * chore: add testaces for uncovered lines * fix: naming of DeferProp
1 parent bf5c3f4 commit f8c682d

18 files changed

+438
-170
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ return new InertiaConfig(
3030
/**
3131
* Version resolver, if you use vite for example you probably want to use the default here,
3232
* or you can add a custom one to maybe get from enviroment variables etc.
33+
*
34+
* default path: public/build/manifest.json
3335
*/
34-
versionResolverClass: ManifestVersionResolver::class,
36+
versionResolver: new ManifestVersionResolver(),
3537
/**
3638
* Props that should be included in "all" requests, the default is errors and the authenticated user
3739
*/

composer.lock

Lines changed: 130 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Contracts/InertiaVersionResolver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
namespace NeoIsRecursive\Inertia\Contracts;
66

7+
use Tempest\Container\Container;
8+
79
interface InertiaVersionResolver
810
{
9-
public function resolve(): string;
11+
public function resolve(Container $container): string;
1012
}

0 commit comments

Comments
 (0)