Skip to content

1.24 causes full app rerenders on small changes #6920

@RmStorm

Description

@RmStorm

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

I updated to Streamlit 1.24.0 and now my app is completely rerendering on every change. Something is just completely nuking the react elements and causing them to rerender from scratch. I have created two gifs to show you exactly what I mean. This is clearly not desired behavior I think..

I don't have time to make a reproducible example for you but I think the gifs make it pretty clear what's happening. I will just stick to 1.23.1 for now. It's particularly bad for the map element since it's zoom, center and it's loaded tiles get reset.

Good in 1.23.1 Bad in 1.24
good1 23 1 bad1 24 0

Expected Behavior

Don't re-render everything from scratch

Current Behavior

It re-renders from scratch

Debug info

  • Streamlit version: 1.24.0
  • Python version: 3.9.10
  • Operating System: Linux Mint 21.1
  • Browser: Mozilla Firefox 114.0.2
  • Virtual environment: see dependency list ⬇️

grpcio-tools==1.54.2
polars==0.18.3
typer==0.9.0
shapely==2.0.1
geopandas==0.13.2
geopolars==0.1.0a4
streamlit==1.24.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions