Skip to content

Conversation

RoduanKD
Copy link
Contributor

Context: When pulling data from WordPress API (V2) endpoint, the page query parameter doesn't accept zero.
offsetParam in NetworkListAdapter only accepts the parameter name and it doesn't cover the initial value.

Solution: I added an offsetCount option to the widget so if I want to start from page number eg 1, 2, 3 ... I just added offsetCount parameter.

Example:

CustomListView( 
  // What page to start from (default: 1)
  offsetCount: 1,
),

@themisir themisir merged commit 30f0e5a into themisir:master Aug 23, 2020
@RoduanKD RoduanKD mentioned this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants