Skip to content
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

SearchFeed Optimisation and Code readability #43

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

Conversation

aditiissingh
Copy link

@aditiissingh aditiissingh commented Apr 22, 2024

SearchFeed optimisation and code readability

Changes made:

  1. Removed unnecessary import React statement (if you're using React 17+).
  2. Simplified the useEffect hook to directly define the asynchronous function within it.
  3. Added error handling in case of fetch failure.
  4. Removed unnecessary styling (ml={{ sm: "100px" }}) for Typography component.
  5. Added comments to explain the purpose of each section of the code.

@aditiissingh aditiissingh changed the title Main SearchFeed Optimisation and Code readability Apr 22, 2024
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