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

Allow item pane sections to declare dependencies for rerender, fix Libraries and Collections not updating #4155

Merged

Conversation

AbeJellinek
Copy link
Member

  • By default, rerender is only necessary when tab or item ID changes
  • Libraries and Collections box additionally depends on the collection tree row
    • Pass collectionTreeRow down to item pane sections

Fixes #4154

@windingwind
Copy link
Contributor

Looks good to me!

@AbeJellinek AbeJellinek marked this pull request as draft May 23, 2024 03:14
@AbeJellinek AbeJellinek marked this pull request as ready for review May 23, 2024 15:00
@AbeJellinek
Copy link
Member Author

Does that still look OK? I realized that we'd be better off not relying on string comparison for this.

@AbeJellinek AbeJellinek force-pushed the 4154-rerender-when-switching-collections branch from 054967b to 1fbcd35 Compare May 28, 2024 18:33
@AbeJellinek
Copy link
Member Author

How's that? Should avoid naming confusion and test breakage.

@windingwind

This comment was marked as duplicate.

@windingwind
Copy link
Contributor

The item pane header seems to be broken for me. The relevant tests fail and changes to the header mode are not applied until the next restart.

@AbeJellinek
Copy link
Member Author

Oh, right, thanks - fixed!

@windingwind
Copy link
Contributor

Thanks for the quick fix. Seems nice!

@dstillman dstillman merged commit 6b4cac1 into zotero:main May 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Libraries and Collections box doesn't update currently selected collection
3 participants