Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: isExtendedResult. Check if promiseData is an object and not a valid React Element #595

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

diegotraid
Copy link
Contributor

Passing a ReactNode as a message will render an empty toast since typeof promiseData === 'object' is true (a ReactNode is an object).

Fix: check if type promiseData === 'object' and not a valid React Element.

Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 3:30am

@diegotraid
Copy link
Contributor Author

Hello @emilkowalski ! Do you think this could be merged soon?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant