{"record":{"id":"2b3d5d03524cc3b6","repo":"filamentphp/filament","slug":"the-current-component-s-state-path-statepath-do","errorCode":null,"errorMessage":"The current component's state path [$statePath] does not start with the container's constant state path [$containerConstantStatePath].","messagePattern":"The current component's state path \\[\\$statePath\\] does not start with the container's constant state path \\[\\$containerConstantStatePath\\]\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/schemas/src/Components/Concerns/HasState.php","lineNumber":1021,"sourceCode":"    /**\n     * @internal Do not use this method outside the internals of Filament. It is subject to breaking changes in minor and patch releases.\n     */\n    public function getConstantStatePath(): ?string\n    {\n        $statePath = $this->getStatePath();\n\n        if (blank($statePath)) {\n            return null;\n        }\n\n        $containerConstantStatePath = $this->getContainer()->getConstantStatePath();\n\n        if (blank($containerConstantStatePath)) {\n            return $statePath;\n        }\n\n        if (! str($statePath)->startsWith(\"{$containerConstantStatePath}.\")) {\n            throw new LogicException(\"The current component\\'s state path [$statePath] does not start with the container\\'s constant state path [$containerConstantStatePath].\");\n        }\n\n        return (string) str($statePath)->after(\"{$containerConstantStatePath}.\");\n    }\n\n    /**\n     * @internal Do not use this method outside the internals of Filament. It is subject to breaking changes in minor and patch releases.\n     */\n    public function getRecordConstantStatePath(): ?string\n    {\n        if ($this->getRecord(withContainerRecord: false)) {\n            return $this->getStatePath();\n        }\n\n        return $this->getContainer()->getConstantStatePath();\n    }\n\n    public function separator(string | Closure | null $separator = ','): static","sourceCodeStart":1003,"sourceCodeEnd":1039,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/schemas/src/Components/Concerns/HasState.php#L1003-L1039","documentation":"Error \"The current component's state path [$statePath] does not start with the container's constant state path [$containerConstantStatePath].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/schemas/src/Components/Concerns/HasState.php:1021 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"}