Search posts, tags, users, and pages
Picture this: you're typing in a search bar, and with every letter you type, a function is fired off. Now, what if you're typing really fast? Those functions start to pile up, potentially causing chaos in your web app and making it slow. How do we ha...
Yash Nirmal
@yashnirmal · India
Building with code, sharing through blogs
I am a full-stack developer. Building with Go, Typescript, React, Node, PostgreSQL, MongoDB. Here to share my knowledge and journey
Markdown supported · ⌘↵ to post
victor immanuel
nice explanation.
we can make use of uncontrolled components for input right, this way there won't be any function running until the user submits.
What other complex scenarios would this be useful in?
Thanks Victor
Primary use case is preventing unnecessary renders and time and resource heavy tasks like API calls.
You can use this in customs hooks as well, but the primary use case remains the same
victor immanuel
nice explanation.
we can make use of uncontrolled components for input right, this way there won't be any function running until the user submits.
What other complex scenarios would this be useful in?