question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icons always show the default in v9

See original GitHub issue

Do you want to request a feature or report a bug? Bug

What is the current behavior? When specifying a custom icon (globally or per toast call), react-toastify always shows the default one. Even disabling completely the icon with false still shows the default icon.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below: https://codesandbox.io/s/musing-hopper-5rw3bi?file=/src/App.tsx

What is the expected behavior? We should be able to specify a custom icon, as from the docs:

  • A string
  • A component
  • Or false to disable it

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? Test with React 17 and 18, all tested browsers, and macOS. It was working fine with react-toastify@8.2.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
QuiiBzcommented, May 5, 2022

You’re welcome, thanks for the release 😃

0reactions
fkhadracommented, May 5, 2022

@QuiiBz I pushed a new version. I’ve added your test BTW. Thank you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set "always show all icons and notifications on the taskbar" via ...
Any ideas on how to set "always show all icons and notifications on the taskbar" on a set of users? I thought it...
Read more >
How To Restore Default Icons On Windows 10 - YouTube
This video will show you how to restore corrupted icons to their default icons.The icons that Windows uses for your documents and programs ......
Read more >
How To Fix All Icons Are The Same On Windows 7/8/10 [Tutorial]
Desktop icons not working By default, file extensions are not shown in ... If not, the option of searching the Internet is always...
Read more >
Make Windows "Show icon and notifications" by default, but let ...
I'd much rather have the icons always show by default, but with the ability to manually hide individual ones, just as the OP...
Read more >
Always Show All Tray Icons in Windows 10 - Winaero
But default, Windows 10 hides new icons in a special tray in order to keep the taskbar clean. You can make it show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found