Skip to content

reflex-components-sonner@0.10.1a1

Pre-release
Pre-release

Choose a tag to compare

Bug Fixes

  • Ship a py.typed marker so type checkers such as mypy read the package's bundled .pyi stubs 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 previous str type was rejected for lists and crashed the page when a string was passed. (#7824)
  • rx.toast.dismiss now serializes its id the same way rx.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)