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

fix(content): reset state on route change #760

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Conversation

aprendendofelipe
Copy link
Collaborator

Corrige o bug de respostas recém criadas que acabam aparecendo em diferentes conteúdos (reportado em #745).

Agora o componente Content, que renderiza a resposta, recebe o id do conteúdo pai como key. Dessa forma o componente sempre tem seu estado reiniciado quando navegamos para diferentes conteúdos.

@vercel
Copy link

vercel bot commented Oct 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tabnews ✅ Ready (Inspect) Visit Preview Oct 6, 2022 at 4:24PM (UTC)

@filipedeschamps
Copy link
Owner

Merged! Let's gooooo!!

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

Successfully merging this pull request may close these issues.

2 participants