I have a repeater set to a dataset with a filter configured in the dataset properties and a page size.
When the dataset initially loads it works perfectly per the pre-configured filter and page size.
Then I have the ability to filter the dataset via an input text field. I am using setFilter() to accomplish this.
The results returned per this new filter are as expected. However, it’s not abiding by the originally set page size. I can log the dataset’s page size and it still has what I configured.
How do I build a filter via code with a page size in order to “load more” via a function?
If you read the Wix Dataset API info you will find your answer.
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter
Setting a dataset's filter overrides existing filters that were previously set using the setFilter() function or using the Dataset Settings panel in the Editor.