Repeater

I ma trying do do sth custom with repeater

I noticed that a callback is called so many times, and increments at every add items

This is a field inside a repeater.
I put a dump just to debug it

Components\Toggle::make('is_global')
    ->visible(fn() => dump()),


This is a count of printed dump to sequence add items:
  • First add: 1 dump
  • Second add: 12 dump
  • Third add: 23 dump
  • and so on
Why is called so many times?
image.png
Was this page helpful?