-
Notifications
You must be signed in to change notification settings - Fork 25
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
Toast style reactivity #47
Comments
I'm not familiar with the code but it looks like there is a My guess is the code needs to be refactored to merge the options while rendering the toast - instead of when adding toasts to a data structure like now. |
Thanks for pointing this out. Yeah I need to take a deeper look at what would be the best approach to achieve reactivity on the options level |
You could do... export const createToast = (message: Message, type: ToastType = 'blank', options: ToastOptions): Accessor<Toast> =>
createMemo(() => ({.....}) But |
Any news? |
Apologies for the late reply. I was on vacation last couple of weeks. I will take a look at this, this week. Also, PRs are always welcome 😊 |
Example:
Changes of darkMode only get applied to new toasts, but not pre-existing ones. Is there a way to pass reactivity inside a toast?
The text was updated successfully, but these errors were encountered: