Skip to content

[paginationStore] Add onChange callback #36

Open

Description

@techniq

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

Activity

  1. transferred this issue fromtechniq/svelte-uxon Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions