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

Split up LibraryContext (frontend code refactor) #1510

Open
Tracked by #1509
bradenmacdonald opened this issue Nov 18, 2024 · 0 comments
Open
Tracked by #1509

Split up LibraryContext (frontend code refactor) #1510

bradenmacdonald opened this issue Nov 18, 2024 · 0 comments

Comments

@bradenmacdonald
Copy link
Contributor

This is a small-ish frontend refactor that will make it easier to develop the other UX improvements in this epic.

We should split up LibraryContext because it's getting too big and messy. We can instead have LibraryContext, SidebarContext, and ComponentPickerContext.

This will clean up our tests a lot too. The SidebarContext, and ComponentPickerContext can both have defaults so they don't always have to be present in order to read their values. (e.g. isSidebarOpen can just be false in the default context, even if there's no SidebarContextProvider available)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant