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

Logic refactoring #43

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

Logic refactoring #43

wants to merge 2 commits into from

Conversation

mbappai
Copy link
Contributor

@mbappai mbappai commented Aug 26, 2022

No description provided.

@thisisommore thisisommore marked this pull request as draft August 26, 2022 11:50
@thisisommore
Copy link
Member

@mbappai can you remove commented code?

@mbappai
Copy link
Contributor Author

mbappai commented Aug 26, 2022

Yeah ofcourse, commented code has no much relevance. I just left them there incase I might want to do a quick revert

@thisisommore
Copy link
Member

Also I think we should not go with context for now, I find it complicated to understand than props, at least when state is used in parent - child, wdyt?

@mbappai
Copy link
Contributor Author

mbappai commented Aug 27, 2022

What i'm thinking is, we should just leave this PR at the draft stage. Since we already have a working app, performance or any optimisation wouldn't be worth restructuring some of the core parts of the application.

So what I propose is to just use what we already have and i'll just go ahead and memoize the SongList component to prevent the unnecessary re-renders. wdyt?

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.

2 participants