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

Only evaluate rx if it is an Reactive Expression #6014

Merged
merged 5 commits into from
Dec 20, 2023
Merged

Only evaluate rx if it is an Reactive Expression #6014

merged 5 commits into from
Dec 20, 2023

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Dec 7, 2023

should improve what is seen in #6013

Want to add a UI test that checks that the bound function is only run once.

@hoxbro hoxbro added the type: bug Something isn't correct or isn't working label Dec 7, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 7, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (91f841e) 88.62% compared to head (9a5f3e2) 88.65%.
Report is 14 commits behind head on main.

Files Patch % Lines
holoviews/tests/ui/bokeh/test_callback.py 90.47% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6014      +/-   ##
==========================================
+ Coverage   88.62%   88.65%   +0.03%     
==========================================
  Files         315      314       -1     
  Lines       65607    65688      +81     
==========================================
+ Hits        58142    58234      +92     
+ Misses       7465     7454      -11     
Flag Coverage Δ
ui-tests 23.67% <66.12%> (+0.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@TheoMathurin
Copy link
Contributor

With this fix, the function is called only once.

Also, it does not reintroduce #6008

@hoxbro hoxbro marked this pull request as draft December 11, 2023 10:34
@hoxbro hoxbro marked this pull request as ready for review December 15, 2023 14:29
@hoxbro hoxbro requested a review from philippjfr December 19, 2023 14:11
@hoxbro hoxbro changed the title Remove param.rx Only evaluate rx if it is an Reactive Expression Dec 20, 2023
@hoxbro hoxbro merged commit 03eeb82 into main Dec 20, 2023
12 checks passed
@hoxbro hoxbro deleted the remove_rx branch December 20, 2023 12:38
hoxbro added a commit that referenced this pull request Feb 2, 2024
Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DynamicMap callable called unnecessarily in Overlay containing sources of RangeXY stream
4 participants