Skip to content

Conversation

@Abh1noob
Copy link
Member

resolves #112

  • Created new component <SearchBar/> and renamed older compoent to <SearchBarChild/>.
  • Made <SearchBar/> a server component where I call /api/course-list endpoint , and pass the response into client component <SearchBar/> through props.
  • The data is saved in state and searching takes place consuming that state
  • Waiting for response after every keystroke led consumed more time for searching and its fast now this way

@Abh1noob Abh1noob force-pushed the search-optimization branch from a35c05d to 99812e6 Compare March 22, 2025 18:54
@Abh1noob Abh1noob merged commit 635b9e8 into CodeChefVIT:staging Mar 22, 2025
@Abh1noob Abh1noob deleted the search-optimization branch March 29, 2025 21:21
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.

1 participant