You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing undefined to the createWritableMemo() setter doesn't update the memo toundefined.
import{createWritableMemo}from"@solid-primitives/memo";const[count,setCount]=createSignal(1);const[result,setResult]=createWritableMemo(()=>count()*2);result();// => 2setResult(undefined);// overwrites calculation resultresult();// => 2 ❌ incorrect it should be undefined
Describe the bug
Passing
undefined
to thecreateWritableMemo()
setter doesn't update the memo toundefined
.Minimal Reproduction Link
https://playground.solidjs.com/anonymous/76de3e3d-d0e1-457f-8d50-1cebfead6c1c
The text was updated successfully, but these errors were encountered: