You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toast does not shows if you use typing in your session parameter.
Look the code:
app,rt=fast_app()
setup_toasts(app)
@rt('/test-toast1')defget(session):
add_toast(session, f"This is a test toast", "info")
returnMain(Div(f"I like toast, the session type is: {type(session)}"))
@rt('/test-toast2')defget(session:dict):
add_toast(session, f"This is a test toast", "info")
returnMain(Div(f"I like toast, the session type is: {type(session)}"))
When I call /test-toast1, the toast shows and the msg says that session type is dict
When I call /test-toast2, the toast DOES NOT shows and the msg says that session type is dict
Expected behavior
The toast should work independently of the typing mark.
The toast does not shows if you use typing in your session parameter.
Look the code:
When I call /test-toast1, the toast shows and the msg says that session type is dict
When I call /test-toast2, the toast DOES NOT shows and the msg says that session type is dict
Expected behavior
The toast should work independently of the typing mark.
Environment Information
Confirmation
Please confirm the following:
The text was updated successfully, but these errors were encountered: