Download Latest Version @stlite_browser@1.9.2 source code.zip (3.0 MB) Google Add to Preferred Sources
Home / @stlite_react@1.8.2
Name Modified Size InfoDownloads / Week
Parent folder
package.tgz 2026-09-23 31.3 MB
@stlite_react@1.8.2 source code.tar.gz 2026-09-23 2.6 MB
@stlite_react@1.8.2 source code.zip 2026-09-23 3.0 MB
README.md 2026-09-23 1.8 kB
Totals: 4 Items   36.9 MB 0

Patch Changes

  • #2125 762f6ab Thanks @whitphx! - Let Streamlit commands run from a Python callback that JS invokes outside any asyncio task, such as a pyodide.ffi.create_proxy callback fired by setTimeout or a JS library's progress callback.

Stlite keys the ScriptRunContext off the running asyncio task, and such a callback has none, so every st.* call from it failed with AttributeError: 'NoneType' object has no attribute 'get_name'. The context now falls back to the thread object when no task is running, so the recipe Streamlit documents for worker threads, add_script_run_ctx(threading.current_thread(), ctx), works from such a callback too, whether the callback attaches the context itself or the script attached it beforehand. An async def callback runs as its own task and has to call add_script_run_ctx(ctx=ctx) inside itself.

What's Changed

🏕 Updates

Full Changelog: https://github.com/whitphx/stlite/compare/@stlite/browser@1.9.1...@stlite/react@1.8.2

Source: README.md, updated 2026-09-23