Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetFilter() and SetPaging() are not Working Properly #1345

Open
Moinshaikh2602 opened this issue Aug 24, 2023 · 0 comments
Open

SetFilter() and SetPaging() are not Working Properly #1345

Moinshaikh2602 opened this issue Aug 24, 2023 · 0 comments

Comments

@Moinshaikh2602
Copy link

Moinshaikh2602 commented Aug 24, 2023

hi there , I'm using ServerDataSource() with following configurations and code


const config = {
			dataKey : "data.data",
			endPoint: url,
			pagerPageKey: 'page', 
			pagerLimitKey: 'limit',
			totalKey:"data.total",
		}

const filtersObject:Array<object> = filters
	?this.queryStringService.getFilterObject(JSON.parse(filters))
	:[]
const defualtPage = !isNaN(page)?page:1

this.source = new ServerDataSource(this.http,config);
this.source.setFilter(filtersObject,true,false).setPaging(defualtPage,10,true);  // I think problem is here

The problem is some how code is call API multiple times

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

No branches or pull requests

1 participant