fix: ajusta duplicidade na emissão de eventos de busca #1038
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Por favor, verifique se o seu pull request está de acordo com o checklist abaixo:
1 - Resumo
Ajusta emissão dos eventos de busca na data table para que somente seja emitido o evento correspondente a busca síncrona ou assíncrona.
2 - Tipo de pull request
3 - Esse PR fecha alguma issue? Favor referenciá-la
Não
4 - Quais são os passos para avaliar o pull request?
É importante setar a prop
SearchInputDelaypara um valor relativamente alto, como 2500, para observar melhor os efeitos do PRWithSearchestá ativa o evento de busca emitido é@searchWithSearchestá ativa e o usuário preenche o input e pressiona enter, somente o evento@searché emitidoWithSearcheWithSearchButtonestão ativas o evento de busca emitido é somente@search-button-click5 - Imagem ou exemplo de uso:
6 - Esse pull request adiciona breaking changes?