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

Fix GH-22 (TypeError with Streamlit 0.84) #23

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

msabramo
Copy link
Contributor

@msabramo msabramo commented Jul 3, 2021

In Streamlit 0.84, component_value is a str with JSON-encoded data, rather than a dict as with previous Streamlit versions.

Added a check for str and if it's a str, we decode the JSON into a dict.

Fixes: GH-22

In Streamlit 0.84, `component_value` is a `str` with JSON-encoded data,
rather than a `dict` as with previous Streamlit versions.

Added a check for `str` and if it's a `str`, we decode the JSON into a
`dict`.

Fixes: PablocFonsecaGH-22
@prempv
Copy link

prempv commented Jul 7, 2021

This is a crucial fix for the latest streamlit 0.84. @PablocFonseca

@jtelleriar
Copy link

jtelleriar commented Jul 9, 2021

@PablocFonseca For me this PR is also critical in order to use streamlit-aggrid with the latest Streamlit Version 0.84.

Which implements session states: https://blog.streamlit.io/session-state-for-streamlit/

Could be merged to main branch? For now, will fork the repo only to include this critical Pull Request :)

Thanks

@PablocFonseca PablocFonseca changed the base branch from main to refactor July 29, 2021 14:49
@PablocFonseca PablocFonseca merged commit c47b479 into PablocFonseca:refactor Jul 29, 2021
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.

Clicking a row in streamlit 0.84 causes a TypeError
4 participants