thecodewarrior
Results
24
comments of
thecodewarrior
So I think I can make VueStore in vue 3 work - with any class hierarchy - with full inheritance (e.g. any class extending a VueStore class is fully reactive)...
So doing it that way would be a breaking change, however I can make it fall back to the old behavior when used as a decorator, then discourage using that...
Looking this up again, inheritance may actually be possible: https://stackoverflow.com/questions/64715536/how-to-capture-proxy-set-actions-from-a-class-constructor/64715857
After some more careful reading, inheritance isn't plausible. That stackoverflow post is about changing the final *prototype* of the object, but you can't provide a custom `this` instance itself. It...