Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Adding active search capabilities to the table component #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steve-manywho
Copy link
Contributor

The table component could use the option for "active search" which basically means the user doesn't need to hit the search button. I've put in a listener that waits for the user to stop typing for 1 second before performing the search request to stop it from storming the underlying service with requests. You can test it out here (if you can login to our demo salesforce org):

http://localhost:3000/debug.html?tenant-id=4dc56bec-b68c-47ac-8998-7ba961734c18&
flow-id=fae5b62a-589c-4618-bdb5-682f1f0dd3b0

@matt-manywho
Copy link
Contributor

@steve-manywho This would be better implemented in the onSearchChanged handler in table-container.js. We have a debounce function at manywho.utils.debounce that will call a function after a timeout where the timeout gets reset each time the function is attempted to be called.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants