Skip to content

Conversation

@tconkling
Copy link
Contributor

@tconkling tconkling commented May 11, 2021

Most of our widgets have a confusingly-named "setWidgetValue" function. These functions do not actually change the values of the widgets themselves, but rather commit the widgets' currently-stored values to the WidgetStateManager.

This is just a trivial refactor that renames these functions to "commitWidgetValue", for clarity.

Most of our widgets have a confusingly-named "setWidgetValue" function.
These functions do not actually change the value of the widgets themselves,
but rather commit the widget's currently-stored value to the
WidgetStateManager. This is just a trivial refactor that renames these
functions to "commitWidgetValue", for clarity.
@tconkling tconkling requested a review from a team May 11, 2021 23:58
@tconkling tconkling merged commit edea6e8 into streamlit:develop May 12, 2021
@tconkling tconkling deleted the tim/CommitWidgetValue branch May 12, 2021 05:11
tconkling added a commit to tconkling/streamlit that referenced this pull request May 17, 2021
* develop:
  Remove tag from PR template (streamlit#3284)
  Add test req version bound for TF to fix tests (streamlit#3266)
  Add support for toml syntax highlighting in code blocks (streamlit#3140)
  Don't allow config.get_option to be called on file import (streamlit#3235)
  pin click to < 8.0 (streamlit#3256)
  Random cleanup: docstrings + type-safety (streamlit#3252)
  "setWidgetValue" -> "commitWidgetValue" (streamlit#3253)
tconkling added a commit that referenced this pull request May 18, 2021
* develop: (75 commits)
  Remove tag from PR template (#3284)
  Add test req version bound for TF to fix tests (#3266)
  pin click to < 8.0 (#3256)
  Up version to 0.82.0
  Update change log
  Add support for toml syntax highlighting in code blocks (#3140)
  Don't allow config.get_option to be called on file import (#3235)
  pin click to < 8.0 (#3256)
  Random cleanup: docstrings + type-safety (#3252)
  "setWidgetValue" -> "commitWidgetValue" (#3253)
  Fix inactive DatePicker if the date value is 10 years earlier (#3241)
  Upgrade trim to 0.0.3 or later (#3250)
  Manually name all snapshots and generate missing ones (#3205)
  Fix Video Recorded modal dialog width (#3226)
  Bump handlebars from 4.7.6 to 4.7.7 in /frontend (#3238)
  Bump hosted-git-info from 2.8.8 to 2.8.9 in /frontend (#3234)
  Bump lodash from 4.17.20 to 4.17.21 in /frontend (#3233)
  Bump ua-parser-js from 0.7.23 to 0.7.28 in /frontend (#3231)
  Update FAQs with supported browsers (#3225)
  Update copyright date (#3228)
  ...
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