vveisard
vveisard
SSolidJS
Created by vveisard on 6/26/2024 in #support
Basic store example is not reactive
I also came up with the workaround to bundle beforehand, but I'm trying to use the bun runtime without bundling. I think this problem can only be truly fixed by a standalone reactivity package, which I know is in the works, so I'll close this post for now.
6 replies
SSolidJS
Created by vveisard on 6/26/2024 in #support
Basic store example is not reactive
Okay, I see the problem: solid-js/store/dist/store.js imports solid-js which then resolves to the server version because of conditional exports.
6 replies
SSolidJS
Created by vveisard on 6/26/2024 in #support
Basic store example is not reactive
That seems to be the case, but it's unclear to me why those imports are "still" resolving to the server versions of solid, despite being explicit
6 replies
SSolidJS
Created by vveisard on 3/3/2024 in #support
How do I use solid for reactivity without a build step?
Found a post in a GitHub related to this, posting in case anyone stumbles across this Discord forum post https://github.com/solidjs/solid/discussions/1065#discussioncomment-2979082
6 replies
SSolidJS
Created by vveisard on 3/3/2024 in #support
How do I use solid for reactivity without a build step?
Okay, so the root cause is conditional exports of the package.json. With node you can use the --conditions flag. Not sure for bun. I'll see what I can do, thanks!
6 replies
SSolidJS
Created by vveisard on 12/31/2023 in #support
How to create effect for each element of mapArray?
Solved it with an additional createEffect inside of mapArray.
6 replies
SSolidJS
Created by vveisard on 12/31/2023 in #support
How to create effect for each element of mapArray?
Your explanation was very helpful, mapArray in createEffect seems like what I need. what I'm going for is running an effect when: - the value (reference) of the entity changes - the value of the counter property changes I've update my example: https://playground.solidjs.com/anonymous/075bb19e-581d-4476-aeaa-f226fbea12c6 However, because mapArray is non-tracking, it isn't behaving like I want.
6 replies