TripleSmile
How to use a resource in a structure field as a reactive signal?
I am having serious skill issues and starting to lose my mind a bit.
Maybe someone has ideas how to make price reactive?
For now as far as I understand price field is created with NaN values because in the beginning of a page load I suppose the fetch is not yet executed because everything is async.
10 replies
How to use ref both inside and outside(parent) component?
I have parent component with this code:
And this is Dialog component:
So, I can open dialog from parent component because ref of dialog works as it should in the parent scope, but I can't use close() of ref of dialog element inside my Dialog component. What am I doing wrong? If I don't split this in two components then it works. But I would prefer to have this Dialog component separate and just be able to open it from a parent component.
14 replies
Good practices in SolidJS
Are there any tutorials which go in depth of what are good and bad practices when building apps with SolidJS? As someone who has no prior experience with reactive libraries I sometimes have hard time understanding if what I'm doing is good or bad practice and maybe sometimes I might be reinventing the wheel or not using SolidJS as intended. So, if there are any tutorials you could recommend on how to properly use SolidJS please let me know. Or just share general recommendations, really want to learn how to use this tool properly. Thanks!
7 replies
Proper implementation of a timer/stopwatch
I am struggling to understand how to properly implement a timer in a reactive library/framework like SolidJS. What I want is 3 buttons:
- start
- reset
- stop
I need to represent time in
minutes| seconds | 100ms(1/10 of a second)
So, what would be a good way to implement a timer like this? Thank you!
10 replies