Skip to content

When using QueryBuilder with Actions memory exhausts almost instantly #12554

Closed
@Sprunkas

Description

@Sprunkas

Package

filament/filament

Package Version

v3.2.72.0

Laravel Version

v11.5.0

Livewire Version

v3.4.11

PHP Version

PHP 8.3.4

Problem description

When clicking second time "View" in "Products" menu table after QueryBuilder filter is applied I get "Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)". Even tried to increase memory limit to 2 GB, execution time to 10 min., but still didn't helped.

Expected behavior

It should open modal just like it opens first time, without a lot of memory consumption and etc.

Steps to reproduce

  1. Add Tables\Actions\ViewAction::make(), in ProductResource table method inside actions([])
  2. Open "Products" menu
  3. Apply any QueryBuilder filter
  4. Click "View" button to open modal
  5. Close modal
  6. Click again "View" button to open modal

Reproduction repository

https://github.com/Sprunkas/filament-demo

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions