-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refatora o código do Countdown #18
Conversation
feat: add eslint check and fix scripts feat: Refactor the countdown to better maintainability fix: fix counter not refreshing when running router.refresh()
@hiroshimorowaka is attempting to deploy a commit to the Salinas' projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excelente PR! Todos os pontos apresentandos aqui trazem melhorias significativas para a manutenabilidade do código, além da tratativa de erro assegurando uma melhor experiência aos usuários. Parabéns pelo trabalho, e obrigado pela incrível contribuição! 🤝
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tratativa de erro ficou muito boa. Ter um placeholder é uma excelente alternativa, e estavamos precisando mesmo cuidar com essa chamada, excelente trabalho!
export default async function Home() { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const cookie = cookies() // Just to force a dynamic route for get the right time to countdown | ||
export const dynamic = 'force-dynamic' // Force dynamic rendering for SSR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boa!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤩
Ahh antes que eu esqueça, assim que eu sair do trabalho vou lá na issue #15. |
O que foi feito
countdown.tsx
para aumentar a manutenibilidadeNenhuma mudança estética foi feita, apenas lógica do código e refatorações devido a issue #15