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

have use_reactive work like use_state #971

Open
maartenbreddels opened this issue Jan 16, 2025 · 0 comments
Open

have use_reactive work like use_state #971

maartenbreddels opened this issue Jan 16, 2025 · 0 comments
Milestone

Comments

@maartenbreddels
Copy link
Contributor

maartenbreddels commented Jan 16, 2025

use_reactive can trigger on_value on a re-render, which can trigger an infinite render loop
See #472
Documented 021c2e8

Demo:
https://py.cafe/snippet/solara/v1?#c=H4sIAB4iiWcEA3VWbWvjRhD-K8L3xYFIWLLjOAHBwcHRfiiUfq1LWEsje-PVrrK7cqI77r_3mZHsOCnNgc8zs_PM-4x_zipX0-xxptvO-ZgEZ5RXWzuRtYqqMioEClu7tV-v6OzyfWvlv-RP5cnGx61N8MfSx6QxTkXWFBY1ydMTvTw9zQOZ5jbxh3AzPec_T7H3NvmuTKDkS9KqIyU6gg3YmjwYdkiibtkXUcDfl0mJAcWjpCwZV76zYf73dYwqqxyisvBxC7wG_u5pfnbA7Z6Tcgo_6wM9eVJV1Ceaj2HNGbDMb27G518S3STKshpVMVHmVQ0hYQN4HZJGYpgbjRCU5KLxqqWb28RZMyQVwKME52xFZ8T_d-GK11Lr5ka1uxrp_eTa5NtJmZ7ekaKjEJWts7-omcNG1mgy9ZihSWN6-bvt-vidSzbfzn7T29ntiFXK5w37-E0hrpyTeqX3h_LH2r3aebOd_ZS3mXz-2s5gYGtntzNPL7321MLdgG4bFUUSh477b-SA7oZ4cBacbnC1rik9LbLiLsshMmpwfZw92t6Y21mjDQHr738gcNWRyW_ORliA8pfkoMLhMakX682Ciod8tyryRu3WuzpfbvLFarUpNnf3zdaiqbQry1W2yRag_N7ZIq2aRpdlsczyT8x0p22t7T5AmmdFtkBOWljnR969lmWeLUUlxOiOZPEOtHBi9Kw1Ye5UdayUMWWJ8IRBqo-66U1wfbd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XkVz81KppacRDxRxFYYqBGxEuCkM58cXMikIUUegICZMBBoXLPxE4Jz8p86oS4ajt8qLBbobz3BwPvTSCr0JC73XWG8tzwR8m040FgoWzZJxpJr9SWOpot7wXa7Nq4rVoXY4YR8bQ_h8tmAA9qH8LqqwDCMqJP0K118J-8Y4nkG0F84DvAGPcGmnnxG8a0dmAASO9HkyucjsxVmAt0gHPx33LX4xnCMdPWR7IRh8vBgdCdTs17-NTpxb4AsAAA

@maartenbreddels maartenbreddels added this to the Solara 2.0 milestone Jan 16, 2025
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

No branches or pull requests

1 participant