react-hot-toast
react-hot-toast copied to clipboard
Remove direct style insertions
Here is a proposal of what I think would be a good first step towards CSP compatible hot toast 😄
I'm not 100% on why casting a React.CSSProperties to goober.CSSAttribute is necessary (or how it even works), but it does seem to be...
May want to examine that a bit more, I suspect there is something I am missing that could be problematic.
However, if this does work, then the great news is that there are no breaking changes!
Fixes #138
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| react-hot-toast | ✅ Ready (Inspect) | Visit Preview | Aug 21, 2022 at 0:26AM (UTC) |