Skip to content

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

Open
@0x0pharaoh

Description

@0x0pharaoh

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

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