Driver
Driver
SSolidJS
Created by Driver on 11/5/2023 in #support
Bug with `solid-js/store` and `solid-primitives/history`
I am now 100% sure that the bug is in the reconcile function. I was able to reproduce it here: https://stackblitz.com/edit/typescript-fcz5m5?file=index.ts
7 replies
SSolidJS
Created by Driver on 11/5/2023 in #support
Bug with `solid-js/store` and `solid-primitives/history`
Okay, I don't get it at all now. It's acting really weird in general. https://stackblitz.com/edit/solidjs-templates-88j7ru?file=src%2Ftest-todo.comopnent.tsx
7 replies
SSolidJS
Created by Driver on 11/5/2023 in #support
Bug with `solid-js/store` and `solid-primitives/history`
No, it's exactly a problem in the reconcile function.
7 replies
SSolidJS
Created by Driver on 11/5/2023 in #support
Bug with `solid-js/store` and `solid-primitives/history`
Digging deeper, it seems that the problem is in structuredClone function
7 replies
SSolidJS
Created by Driver on 11/2/2023 in #support
Controls
Yeah, but I'm trying to write a store with history and undo/redo functionality, so I need to make a shallow copy of the store on every change. May be there is already something like that in solid-primitives?
14 replies
SSolidJS
Created by Driver on 11/2/2023 in #support
Controls
Weird, that's for sure. But I expected this behavior based on the tutorial, how do I subscribe to the changes in the whole store then?
14 replies
SSolidJS
Created by Driver on 11/2/2023 in #support
Controls
No description
14 replies
SSolidJS
Created by andi on 11/2/2023 in #support
Setter type errors
No description
7 replies
SSolidJS
Created by andi on 11/2/2023 in #support
Setter type errors
No description
7 replies
SSolidJS
Created by andi on 11/2/2023 in #support
Setter type errors
Yes, I wrote a silly thing, it had nothing to do with that.
7 replies
SSolidJS
Created by andi on 11/2/2023 in #support
Setter type errors
Have you tried with as const?
return [getter, setter] as const
return [getter, setter] as const
7 replies