Compare commits

...

4 Commits

Author SHA1 Message Date
Masen Furer
b88a17a58b
bump to 0.6.1 2024-09-30 17:23:16 -07:00
Masen Furer
f09888b5a6
bump to 0.6.1a2 2024-09-30 16:01:21 -07:00
Khaleel Al-Adhami
85388ecb1c
use literal var instead of serialize for toast props (#4027) 2024-09-30 16:01:10 -07:00
Masen Furer
560edfb22c
bump to 0.6.1a1 2024-09-28 09:47:06 -07:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "reflex"
version = "0.6.1dev1"
version = "0.6.1"
description = "Web apps in pure Python."
license = "Apache-2.0"
authors = [

View File

@ -17,7 +17,7 @@ from reflex.event import (
from reflex.style import Style, resolved_color_mode
from reflex.utils import format
from reflex.utils.imports import ImportVar
from reflex.utils.serializers import serialize, serializer
from reflex.utils.serializers import serializer
from reflex.vars import VarData
from reflex.vars.base import LiteralVar, Var
@ -281,8 +281,8 @@ class Toaster(Component):
if message == "" and ("title" not in props or "description" not in props):
raise ValueError("Toast message or title or description must be provided.")
if props:
args = serialize(ToastProps(**props)) # type: ignore
toast = f"{toast_command}(`{message}`, {args})"
args = LiteralVar.create(ToastProps(**props))
toast = f"{toast_command}(`{message}`, {str(args)})"
else:
toast = f"{toast_command}(`{message}`)"