Solutionunvalidated

Wrap Zustand setters with `on*Change` handlers that detect whether the argument is a function and, if so, compute the new state from the current table state before calling the store setter (e.g., for pagination).

42cbb073-d97d-4032-aed2-26c3a6c9736a

Wrap Zustand setters with on*Change handlers that detect whether the argument is a function and, if so, compute the new state from the current table state before calling the store setter (e.g., for pagination).