Bug: SolidJS effect does not get triggered on setter #53
Replies: 2 comments 1 reply
-
|
Have you tried using |
Beta Was this translation helpful? Give feedback.
-
|
Only partly related to the issue, but I just found out that I fundamentally misunderstood SolidJS I read now multiple articles to find out how things could work better:
But there is a SolidJS v2 in plan with lazy memo So maybe with that, things might work better, but when I look into the pace of the solid project... this may take a while 😐 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Code:
unuse/packages/unuse-solid/src/index.ts
Lines 138 to 150 in 8f238f9
Test:
unuse/packages/unuse-solid/src/index.spec.ts
Lines 54 to 66 in 8f238f9
expect(mySignal.get()).toBe(100);results in42instead of100.@ryansolid could you maybe explain why the
createSolidEffectgets triggered? And can I somehow trigger it?Beta Was this translation helpful? Give feedback.
All reactions