-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Sandbox name resonance between sidebar and header #1690
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
Sandbox name resonance between sidebar and header #1690
Conversation
|
Great! Thanks a lot @samrith-s |
CompuIves
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a small comment, after that it's ready for merge!
| <CollectionInfo isLoggedIn={store.isLoggedIn} sandbox={sandbox} /> | ||
| <CollectionInfo | ||
| isLoggedIn={store.isLoggedIn} | ||
| sandbox={{ ...sandbox }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you leave a comment as to why you do this? Also, maybe sandbox.toJS() works too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will check that out, and shall leave a comment too!
* Used MobX toJS function over spreading
|
@CompuIves done! Do have a look. |
|
Great! Thank you a lot, really nice to have these contributions! Merging now. |
Update
CollectionInfoinHeader's render function.What kind of change does this PR introduce?
This issue fixes a bug and maintains resonance of the sandbox name between the sidebar and the header.
What is the current behavior?
#1680
Checklist:
The issue was
CollectionInfowas being passed a reference to a sub-sect of observablestore, fromHeader. But MobX states that for the observable to trigger a reaction, it needs to be called inrender.The quick fix is to pass a new reference of
sandboxtoCollectionInfo, rather than passing the observable.