Repository navigation
reflex-components-sonner@0.10.1a1
Pre-release
Pre-release
Bug Fixes
- Ship a
py.typedmarker so type checkers such as mypy read the package's bundled.pyistubs instead of treating it as untyped, and mark the names the package root imports as re-exported. (#7710) - Serialize toast action and cancel button styles with the Sonner option names expected by the frontend. (#7786)
rx.toast.provider(hotkey=...)now takes a list of KeyboardEvent keys and codes, such as["altKey", "KeyT"], which is what sonner expects; the previousstrtype was rejected for lists and crashed the page when a string was passed. (#7824)rx.toast.dismissnow serializes itsidthe same wayrx.toast(id=...)does. Before, a quote in a string id broke out of the generated JavaScript, so an untrusted id could run script in the browser; an id built from an f-string with a state Var also never matched its toast. (#8018)