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

Made library-related header links update when library changes. #101

Merged
merged 1 commit into from Jul 12, 2017

Conversation

aslagle
Copy link
Contributor

@aslagle aslagle commented Jul 12, 2017

I thought React components would re-render on context changes, but they don't. This meant that the header wouldn't update to show a new library when it changed in the context. I had to change the context to have a function that returns the library instead of a string, and also call forceUpdate when the library changes.

@aslagle aslagle requested a review from winniequinn July 12, 2017 20:46
@aslagle aslagle merged commit afe7581 into master Jul 12, 2017
@aslagle aslagle deleted the header-library-links branch July 12, 2017 20:56
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

2 participants