patrickkunka / mixitup

A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more
https://www.kunkalabs.com/mixitup/
4.52k stars 736 forks source link

Update mixer pagination limit on window resize with mixer.configure() #603

Closed jpkarvonen closed 1 year ago

jpkarvonen commented 1 year ago

I am trying to update mixer pagination limit on window resize with mixer.configure() like this:

window.onresize = (event) => {
    if (tabletBreakpoint.matches === true) {
      if(selectMixer.getState().activePagination.limit != 8) {
        selectMixer.configure({
          pagination: {
            limit: 8
          }
        });
      }
    }
  }

I've logged it and the code block runs but the pagination limit is not updated. I am also not getting any errors. Am I missing something, or is it not currently possible to update the pagination limit with configure()?

Thanks for the great tool!

jpkarvonen commented 1 year ago

Sorry -- jumped the gun on this. Totally missed the pagination extension API docs. No issue now.