Skip to content

fix: issue#223 / reload button #234

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

yaakovcarioca
Copy link

*Referente ao Issue #223 *

-Adicionei uma função de reload ao ShelterListView sem recarregar a página inteira (Faz o load somente das listas).
-Add o forceRefresh usando useState.
-Alterei onClick para chamar a função handleRefreshClick forçando a atualização da ShelterListView.
-Force no refresh de dados do react usando a prop key.

A alteração melhora a performance da aplicação ao evitar recarregamentos completos desnecessários

Mudanças:

const [forceRefresh, setForceRefresh] = useState(false);

Screenshot 2024-05-17 at 11 52 36 Screenshot 2024-05-17 at 11 52 51 Screenshot 2024-05-17 at 11 53 04

Copy link
Author

@yaakovcarioca yaakovcarioca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucianomlima useCallback e consolog removidos.

@yaakovcarioca
Copy link
Author

yaakovcarioca commented May 20, 2024

@fagundesjg opa, man, consegue dar o 2ø review? 🙏

@lucianomlima
Copy link
Member

@fagundesjg opa, man, consegue dar o 2ø approval? 🙏

Não peça por aprovação, peça revisão. 😉

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.

[BUG] Botão atualizar no canto superior direito não está atualizando
2 participants