Open cloudstudio opened 1 year ago
Any chance you are using Laravel Octane?
Hello @PhiloNL yes! using Laravel Octane, is because of this ?
Yes, the following is creating a memory leak: https://github.com/wire-elements/spotlight/blob/master/src/Spotlight.php#L20
I think changing it to the following will fix it:
public static function registerCommand(string $command): void
{
tap(new $command, function (SpotlightCommand $command) {
self::$commands[$command->getId()] = $command;
});
}
I'll see if I can test this later this week.
Let me know if I can help testing it, thanks !
Any update?
Hello guys! something weird is happening.
Working super super nice in local as allways, when we deploy in production, using laravel vapor + serverless this is what I see:
As you see is duplicated 3 times, this happend with all commands.
I try creating custom custom provider, or just using default livewire-ui-spotlight.php
Any ideas?
`<?php
return [
]; `