{"record":{"id":"52b5bf6e18da4600","repo":"filamentphp/filament","slug":"a-key-or-statepath-is-required-to-partiall","errorCode":null,"errorMessage":"A [key()] or [statePath()] is required to partially render a component.","messagePattern":"A \\[key\\(\\)\\] or \\[statePath\\(\\)\\] is required to partially render a component\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/schemas/src/Components/Concerns/CanPartiallyRender.php","lineNumber":68,"sourceCode":"    }\n\n    public function isRenderlessAfterStateUpdated(): bool\n    {\n        return (bool) $this->evaluate($this->isRenderlessAfterStateUpdated);\n    }\n\n    public function isPartiallyRenderedAfterStateUpdated(): bool\n    {\n        return (bool) $this->evaluate($this->isPartiallyRenderedAfterStateUpdated);\n    }\n\n    public function partiallyRender(): void\n    {\n        app(PartialsComponentHook::class)->renderPartial($this->getLivewire(), function (): array {\n            $key = $this->getKey();\n\n            if (blank($key)) {\n                throw new LogicException('A [key()] or [statePath()] is required to partially render a component.');\n            }\n\n            return [\n                \"schema-component::{$key}\" => $this->toSchemaHtml(...),\n            ];\n        });\n    }\n\n    public function skipRender(): void\n    {\n        app(PartialsComponentHook::class)->skipPartialRender($this->getLivewire());\n    }\n}\n","sourceCodeStart":50,"sourceCodeEnd":82,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/schemas/src/Components/Concerns/CanPartiallyRender.php#L50-L82","documentation":"Error \"A [key()] or [statePath()] is required to partially render a component.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/schemas/src/Components/Concerns/CanPartiallyRender.php:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}