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

Do no update objects inplace unless explicitly requested #6055

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

philippjfr
Copy link
Member

In an attempt to be clever and optimize updates to objects we added some internal handling that would copy the returned object from a dynamically rendered function or method and then update it inplace. The major problem with this approach is that if the user has a handle on the original object any changes they make to it won't be propagated to the rendered object. Since we now have support for parameter references throughout and are slowly updating our guidance to make users aware of the efficiency gains of providing a reference to a component to update it's parameters I think it is fine to remove this optimization and thereby fix a range of bugs.

Fixes #6044
Fixes #6043
Fixes #6042

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a9a5067) 83.11% compared to head (0cbb67b) 83.07%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6055      +/-   ##
==========================================
- Coverage   83.11%   83.07%   -0.05%     
==========================================
  Files         295      295              
  Lines       43960    43956       -4     
==========================================
- Hits        36539    36516      -23     
- Misses       7421     7440      +19     
Flag Coverage Δ
ui-tests 38.05% <0.00%> (-0.21%) ⬇️
unitexamples-tests 72.79% <100.00%> (+0.02%) ⬆️

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.

@philippjfr philippjfr merged commit 93c4877 into main Dec 15, 2023
12 of 13 checks passed
@philippjfr philippjfr deleted the param_func_inplace_issues branch December 15, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant