Ok. Thanks Evan. I have updated that section to better represent common patterns in Vue. Thank you.
For what it's worth, without completely messing with the semantics I think the Function decoration approach like found in Vue Ref Sugar is the only approach that actually checks all the boxes. But I'm interested in what happens if we do just mess with everything.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
FWIW, the Vue example is a bit misleading: you don't need
$$()
for common reactive effects if usingwatchEffect
:$$()
is only needed if you have external composition functions that explicitly expect a raw ref object as arguments.Ok. Thanks Evan. I have updated that section to better represent common patterns in Vue. Thank you.
For what it's worth, without completely messing with the semantics I think the Function decoration approach like found in Vue Ref Sugar is the only approach that actually checks all the boxes. But I'm interested in what happens if we do just mess with everything.