fix: escape toast dismissal IDs

HA
5h ago
+40-1

Summary

Closes #8017.

Serialize string IDs passed to rx.toast.dismiss as JSON string literals, escaping < so IDs containing Reflex interpolation markers remain opaque to Reflex's Var decoder. This supports quotes and newlines without generating invalid JavaScript or corrupting marker-like IDs.

Regression coverage asserts the complete generated function for apostrophes, double quotes, newlines, and a literal <reflex.Var>...</reflex.Var> ID.

Tests

  • tests/units/reflex_components_sonner/test_toast.py: 6 passed
  • git diff --check: passed