svelte-ux icon indicating copy to clipboard operation
svelte-ux copied to clipboard

[paginationStore] Add `onChange` callback

Open techniq opened this issue 7 months ago • 0 comments

While you can use a changeStore to accomplish the task of calling a function when you change page/etc, being able to provide a paginationStore({ onChange: () => ... }) would simplify this case.

Adding something like...

if (props?.onChange) {
  state.subscribe(props.onChange)
}

...to paginationStore should work.

See discussion

techniq avatar Jul 11 '24 14:07 techniq