Skip to content

Limit re-renders for AutoAdvanceToggle, SupplementalFiles, and MarkersDisplay components - #640

Merged
Dananji merged 3 commits into
mainfrom
state-refactor1-630
Sep 17, 2024
Merged

Limit re-renders for AutoAdvanceToggle, SupplementalFiles, and MarkersDisplay components#640
Dananji merged 3 commits into
mainfrom
state-refactor1-630

Conversation

@Dananji

@Dananji Dananji commented Sep 16, 2024

Copy link
Copy Markdown
Collaborator

Related issue: #630

Both AutoAdvanceToggle and SupplementalFiles components are mostly static components, which don't need to be re-renders with player and structure navigation updates.
As for MarkersDisplay component, it needs to be re-rendered on updates to the markers and Canvas changes.
The changes in this limit re-renders in these components and their child components as needed.

@cjcolvar cjcolvar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks great as far as I can tell!
I'm wondering if the new services/markers.js should be renamed to something more generic. It feels like it might continue to grow to hold other use methods since it seems like a useful pattern. Maybe services/ramp-hooks.js?

@cjcolvar

Copy link
Copy Markdown
Member

A test is failing on node 18. With this being such a large refactor of ramp including changing react major versions do you think it makes sense to drop support for node 18 early and add node 22 to the test matrix?

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