The value passed in onClick$={...}> must be a QRL, instead you passed a "function". Make sure your function is wrapped with $(...), so it can be serialized. Like this:
$(()=>{
deleteToast();
props.toast.onDismiss$?.(props.toast);
}) Error: The value passed in onClick$={...}> must be a QRL, instead you passed a "function". Make sure your function is wrapped with $(...), so it can be serialized. Like this:
$(()=>{
deleteToast();
props.toast.onDismiss$?.(props.toast);
})
Reproduction:
Root (without
closeButton
everything works fine):Component
Error: