decocms / decocms/blocks

[bug][migration] Paginação via partials (Fresh) não tem equivalente automático no TanStack

Open
#422 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5
Forks
2
Avg merge
20h 12m
Merged PRs (30d)
36

Description

Em migrações Fresh → TanStack, o mecanismo de paginação via partials do Fresh (append de HTML sem reload) não é portado automaticamente — causando duplicação de produtos ou paginação quebrada em algumas lojas.

Como funcionava no Fresh: partials permitiam fazer append de novos produtos ao final da lista sem recarregar a página inteira.

Problema na migração: a lógica de append precisa ser reimplementada manualmente no TanStack. Sem isso, ao navegar para a próxima página (especialmente com filtros ativos), os produtos da página anterior podem ser duplicados ou o estado de produtos não é acumulado corretamente.

Impacto: bug recorrente em migrações — o comportamento varia por loja dependendo de como a paginação foi implementada no Fresh.

Sugestão: documentar o padrão esperado no TanStack (infinite scroll com acumulação de estado via useState ou React Query, ou link de paginação tradicional) e incluir como etapa do checklist de migração.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the Fresh partials behavior described here with the TanStack migration path, focusing on pagination with active filters. Document the chosen infinite-scroll or traditional-link pattern and add it to the migration checklist; done means the guidance covers state accumulation without duplicated products.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.