Skip to content
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

Feature: Support conditional triggering of queries #312

Closed
daoleno opened this issue Apr 29, 2023 · 5 comments
Closed

Feature: Support conditional triggering of queries #312

daoleno opened this issue Apr 29, 2023 · 5 comments

Comments

@daoleno
Copy link

daoleno commented Apr 29, 2023

Similar to the enable option in useQuery of React Query, I would like to trigger a query only when certain conditions are met.

@cesarenaldi
Copy link
Member

hi @daoleno, I totally understand the feature requested, I remember entertaining this idea with someone. Very similar to Apollo useQuery skip.

I believe in that occasion the dev decided to opt for conditionally render a child component. Did you entertain this idea? Any other alternative you might have considered?

For the next time, can I please ask you to use the provided template if possible?

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

@meta113
Copy link

meta113 commented May 11, 2023

Posting requires gas fee! Interaction, likes and comments are also needed.

@cesarenaldi
Copy link
Member

Posting requires gas fee! Interaction, likes and comments are also needed.

@meta113 you lost me there, can you please clarify how you see it relates with the conversation?

In general, posting on lens is for the vast majority subsidized by the Protocol. So gas is not needed for the vast majority of users. Comments and reactions (likes) are also features of the Protocol, subsidized as well.

@cesarenaldi
Copy link
Member

Work in progress on this available here: #467

@cesarenaldi
Copy link
Member

This will be implemented in the shape of "lazy hooks". Closing this issue for now.

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

No branches or pull requests

3 participants