widgetti / solara

A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps
https://solara.dev
MIT License
1.62k stars 105 forks source link

fix: use_thread shortly contains old value when finished #267

Open mariobuikhuizen opened 8 months ago

maartenbreddels commented 8 months ago

I pushed a possible fix, but this needs a longer discussion and more thinking. One edge case that I can think of is that I'm not sure what happens if the dependencies are the same again as before, possibly not triggering a use_effect.