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

Refactor Playlist class to functional component #2860

Merged
merged 15 commits into from May 25, 2024

Conversation

MonkeyDo
Copy link
Contributor

Refactoring mooooore components.

Had to make some changes to renderWithProviders to allow rendering without a router, becuase this component uses useLoaderData which requires us to render a RouterProvider with a specific route rather than rendering the component we are testing directly.

anshg1214 and others added 10 commits April 30, 2024 14:03
For some routes we need to render a RouterProvider with a single custom route rather than the component itself, but we can't do that if there is already a BrowserRouter wrapper in renderWithProviders. Added an option to not add a router.
Removed the library in 3b608ab
It is required by react-tooltip, let's aim to move to V5 which drops uuid as a requirement https://react-tooltip.com/docs/upgrade-guide/changelog-v4-v5
@anshg1214 anshg1214 merged commit 2c3ecb7 into brainzplayer-spa May 25, 2024
3 checks passed
@anshg1214 anshg1214 deleted the playlist-refactor branch May 25, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants