Skip to content

Conversation

@arv
Copy link
Collaborator

@arv arv commented Apr 11, 2025

0.19 removes updateTTL from Query. Instead it gets passed into the view factory function.

This PR supports both 0.18 and 0.19 by checking the arguments passed to the view factory function. If updateTTL is passed, it is passed to the view. If not, it is taken from the query.

Once 0.18 is old enough the workaround can be removed.

0.19 removes updateTTL from Query. Instead it gets passed into the
view factory function.

This PR supports both 0.18 and 0.19 by checking the arguments
passed to the view factory function. If updateTTL is passed, it
is passed to the view. If not, it is taken from the query.

Once 0.18 is old enough the workaround can be removed.
@arv arv requested review from danielroe and maxstevens-nl April 11, 2025 07:49
@arv
Copy link
Collaborator Author

arv commented Apr 11, 2025

There is no rush to land this. It can wait until 0.19 is released... Who knows. There might be further changes.

Copy link
Collaborator

@maxstevens-nl maxstevens-nl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielroe do you want to merge and release?


watch(ttl, (ttl) => {
toValue(query).updateTTL(ttl)
toValue(view)?.updateTTL(ttl)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just do this:

Suggested change
toValue(view)?.updateTTL(ttl)
view.value?.updateTTL(ttl)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems the same to me but I'm not sure what is preferred in vue code?

@arv
Copy link
Collaborator Author

arv commented Apr 14, 2025

I would wait until 0.19 is done. I'm thinking about his to remove more things from query

@danielroe
Copy link
Owner

marking as draft in the interim - ping me whenever you'd like! 🙏

@danielroe danielroe marked this pull request as draft April 21, 2025 09:42
@arv arv marked this pull request as ready for review May 5, 2025 08:13
Copy link
Collaborator Author

@arv arv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielroe This is now ready to go

@danielroe danielroe merged commit 1feee9c into danielroe:main May 6, 2025
6 checks passed
@arv arv deleted the arv/update-ttl-deprecated branch May 6, 2025 12:03
@Gerbuuun
Copy link
Contributor

Gerbuuun commented May 6, 2025

Is this being released today? I was just updating an older project and could use this very well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants