Adel
Adel
SSolidJS
Created by Basil on 3/14/2024 in #support
Using SolidJS's produce(), but with Immer-style patch generation?
I ended up cleaning solid store's proxy before passing it to immer's produce/produceWithPatches:
/** removing solid store proxy's circular references before passing to immer */
const clean = <T>(t: T): T => structuredClone(unwrap(t))
/** removing solid store proxy's circular references before passing to immer */
const clean = <T>(t: T): T => structuredClone(unwrap(t))
12 replies