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

Feat: Persisting the Category state in the URL as query params #336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nigupta29
Copy link

Brief:

  1. Currently, the category and filtered state has been dealt at client side.
  2. This PR covers the handling of category filtering at server side.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

Major Changes

  1. Added category options to the getAllTracks util functions.
  2. Converted Tracks component from client to server.
  3. Moved Landing component to the main page to directly pass the searchParams to the getAllTracks.

Have a review on this PR. Thanks!

How the categories has been persisted currently.

Before.Category.state.in.url.mp4

How the categories has been persisted in this PR.

After.Category.state.in.url.mp4

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.

None yet

1 participant