Closed voladelta closed 2 years ago
Hmmm, I could certainly provide named blocks for comment pragma, what I have problems with would be adding support for custom reactive utilities. I could probably add support for auto-block:
/* @block createCustomEffect */ {
// ...
}
// becomes
createCustomEffect(() => {
// ...
});
The reason I can only provide this much was because it's a bit of a challenge on where to put things after the pragma (in this case, name).
Named effects have now been released in v0.8.0
For third-party labels/pragma, I'll think about the benefits of them being added, meanwhile, I usually encourage 3P code to remain 3P. They can always opt-in to the sugar (that is, for memos and signals).
Hi Alexis,
First of all, thank you for the package. It makes my dev life with Solid easier.
So here the request: π
The reason: It took me 2 days on and off to figure out why a Select didn't set initial memo value. Turned out i was using
createRenderEffect
instead ofcreateEffect
.So i'd like to have
then ability to set custom createEffect like
or inject code into effect comment if possible, like
The reason: i want to track the executation flow of effect/computation, to know if the my designed flow is correct. So it won't took me 2 days to debug any more. so i wrote little helper.
I know you might be busy. So if you point me to the direction, i can learn to implement them.
Thank you for taking your time and reading this. ππ€