AmanNegi / FreshNest

A platform that connects local producers directly with consumers seeking fresh produce.
https://fresh-nest.netlify.app
GNU Affero General Public License v3.0
22 stars 36 forks source link

Implement Client-Side Filtering for Shop Page #121

Closed Chirayu31 closed 11 months ago

Chirayu31 commented 11 months ago

The current Shop page fetches data from the server every time a user selects a filter, resulting in unnecessary API calls and slower performance. To optimize performance and reduce server load, we should transition to client-side filtering.

Proposed Solution:

  1. Fetching all necessary data from the server on the initial page load.
  2. Implementing client-side filtering to instantly update displayed products when users select filter options.
  3. Offering an option for users to refresh data from the server when needed.

Implementing client-side filtering will greatly enhance Shop page performance, creating a more efficient and user-friendly experience

AmanNegi commented 11 months ago

Great observation @Chirayu31! That should exponentially increase the performance. Feel free to drop a PR if you're interested in working on this issue. 😄

Chirayu31 commented 11 months ago

Working on it!