Closed Innei closed 1 year ago
If I write this code, I want to change the theme.
export const SonnerContainer = () => { const isDark = useIsDark() return ( <Toaster richColors closeButton duration={6666} theme={isDark ? 'dark' : 'light'} /> ) }
But props theme is not reactive.
theme
https://github.com/emilkowalski/sonner/blob/main/src/index.tsx#L385
This has been fixed in #103. You can update to the latest version to have it working again
If I write this code, I want to change the theme.
But props
theme
is not reactive.https://github.com/emilkowalski/sonner/blob/main/src/index.tsx#L385