{"record":{"id":"a97813d1ec8c99ed","repo":"livewire/livewire","slug":"cannot-call-methodname-computed-property-me","errorCode":null,"errorMessage":"Cannot call [{$methodName}()] computed property method directly on component: {$componentName}","messagePattern":"Cannot call \\[(.+?)\\(\\)\\] computed property method directly on component: (.+?)","errorType":"exception","errorClass":"CannotCallComputedDirectlyException","httpStatus":null,"severity":"error","filePath":"src/Features/SupportComputed/BaseComputed.php","lineNumber":25,"sourceCode":"use Livewire\\Features\\SupportAttributes\\Attribute;\nuse Illuminate\\Support\\Facades\\Cache;\n\n#[\\Attribute]\nclass BaseComputed extends Attribute\n{\n    protected $requestCachedValue;\n\n    function __construct(\n        public $persist = false,\n        public $seconds = 3600, // 1 hour...\n        public $cache = false,\n        public $key = null,\n        public $tags = null,\n    ) {}\n\n    function call()\n    {\n        throw new CannotCallComputedDirectlyException(\n            $this->component->getName(),\n            $this->getName(),\n        );\n    }\n\n    public function handleMagicGet($returnValue)\n    {\n        if ($this->persist) {\n            $returnValue(\n                $this->requestCachedValue ??= $this->handlePersistedGet()\n            );\n\n            return;\n        }\n\n        if ($this->cache) {\n            $returnValue(\n                $this->requestCachedValue ??= $this->handleCachedGet()","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/livewire/livewire/blob/1a3fde34c5789366411c450cf4e630356f18b584/src/Features/SupportComputed/BaseComputed.php#L7-L43","documentation":"Error \"Cannot call [{$methodName}()] computed property method directly on component: {$componentName}\" thrown in livewire/livewire.","triggerScenarios":"Thrown at src/Features/SupportComputed/BaseComputed.php:25 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":"1a3fde34c5789366411c450cf4e630356f18b584","analyzedAt":"2026-08-17T02:02:20.412Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}