Hey. I’m tired and I need to sleep so im just gonna make this short. I have a function that gets a page with specifc CatalogServiceParams and when i advance pages it just gives me previous ids that were already given (with some new ones ofc) and i filter it now but i just want it to show full new ones. heres some of my code:
where it applies the pages
if not pagesTable[currentPage] then
if currentPage > 1 then
currentPageObject:AdvanceToNextPageAsync()
currentPageItems = currentPageObject:GetCurrentPage()
end
local newPageFrame = templatePage:Clone()
newPageFrame.Parent = pageFolder
newPageFrame.Name = tostring(currentPage)
pagesTable[currentPage] = newPageFrame
newPageFrame.Visible = true
pagination
local currentPageObject
local currentPageItems = {}
function CatalogHandler:GetItemPage(params)
local pageObject = avatarEditorService:SearchCatalog(params)
currentPageObject = pageObject
currentPageItems = pageObject:GetCurrentPage()
return currentPageItems
end
thanks ok bye