-
Notifications
You must be signed in to change notification settings - Fork 55
refactor: vue #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
refactor: vue #283
Conversation
|
It makes sense to reduce the possible props options. |
Yeah using vue's Auto dependency tracking makes sense to me. @samwillis thoughts? |
@tanstack/db-example-react-todo @tanstack/db
@tanstack/electric-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
Absolutely, this was very much a first pass based on the react one. With Vues reactivity model the deps are not needed. I think it's also worth exploring if there is a better model with Vue where we mutate a |
@samwillis would that be a non-breaking change? Given this is a breaking change, I'd like this in sooner than later. Fine-grained reactivity would be great though. |
@teleskop150750 how are you feeling about this PR? Anything left you want to do? |
why did yall go with getters here instead of refs for return properties? Most of Vue composables/hooks excepts Refs as return properties... while this works it feels really weird |
Look at this example for different frameworks. We can also decide which API to use. The downside of the example is that destructuring does not work. @targetlucked69 Vue users often use Ref for returning and passing, but this does not mean that this way is always good. In this PR I swapped ref, reactive, computed. Using getter helps to apply such changes without changing the API |
Watch lecture 26:00 - 32:00 https://www.youtube.com/live/J0O69dGljx8 @KyleAMathews discussion api getter 1:59:00 I don't remember the exact time now |
I feel like this is entering premature optimization area |
@targetlucked69 how so? This isn't a hugely complex integration so it seems like we can anticipate necessary optimizations upfront? What would we need to learn before doing more optimizations? |
Why? this PR does nothing except:
|
No description provided.