decocms / decocms/blocks

[bug][migration] Drawers e modais abrem sem conteúdo e travam a interface

Open
#420 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, drawers e modais abrem com fundo/overlay preto mas sem conteúdo interno. Após abrir, qualquer clique trava a interface completamente.

Comportamento:

  1. Acionar drawer (login, menu mobile) ou modal
  2. Overlay/fundo preto aparece, conteúdo não renderiza
  3. Interface trava — nenhum clique responde

Causa raiz: o signal de controle de abertura é lido com .value diretamente no render React, o que não dispara re-render. O overlay monta (estado booleano funciona via efeito colateral) mas o conteúdo interno fica estático.

Fix: trocar leitura direta de .value por useSignalValue em todos os componentes de drawer/modal.

Impacto: bug recorrente em todas as migrações — afeta LoginDrawer, MobileMenu, e qualquer modal com conteúdo controlado por signal.

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

Find the LoginDrawer, MobileMenu, and other drawer or modal components involved in Fresh-to-TanStack migrations, then locate render-time reads of the opening signal with direct .value access. Replace those reads with useSignalValue, and verify that drawer and modal content renders and that clicks remain responsive after opening.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.