8000 Implement smarter Column child rendering by philippjfr · Pull Request #7846 · holoviz/panel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement smarter Column child rendering #7846

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

Merged
merged 4 commits into from
Apr 16, 2025
Merged

Implement smarter Column child rendering #7846

merged 4 commits into from
Apr 16, 2025

Conversation

philippjfr
Copy link
Member

The LayoutDOM implementation in Bokeh removes child DOM nodes and then re-adds them. This is problematic for certain React based scenarios where detaching a DOM node and re-attaching it can make React lose track of certain internal state. Therefore we re-implement the update_layout implementation here to avoid removing elements and instead insert the new children in the appropriate locations.

@philippjfr
Copy link
Member Author

@mattpap question for you, do you have any major concerns with this and would you be opposed to upstreaming something like this in Bokeh?

Copy link
codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.07%. Comparing base (56f4b2e) to head (d9c9e83).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7846      +/-   ##
==========================================
- Coverage   87.09%   86.07%   -1.03%     
==========================================
  Files         346      346              
  Lines       52947    53014      +67     
==========================================
- Hits        46116    45633     -483     
- Misses       6831     7381     +550     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mattpap
Copy link
Collaborator
mattpap commented Apr 15, 2025

As long as order is maintained, this is fine. In fact, I would prefer to have a non-removing approach in bokeh.

@philippjfr
Copy link
Member Author

Okay, will upstream shortly.

@philippjfr philippjfr merged commit ae4d161 into main Apr 16, 2025
15 of 18 checks passed
@philippjfr philippjfr deleted the column_render branch April 16, 2025 12:34
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
0