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

Fine-Grained Query initializers #17

Merged
merged 2 commits into from
Apr 17, 2022
Merged

Fine-Grained Query initializers #17

merged 2 commits into from
Apr 17, 2022

Conversation

groue
Copy link
Owner

@groue groue commented Apr 17, 2022

This pull request defines three distinct @Query initializers, that make it possible to fine tune who can update a tracked request:

  • When it is the view that contains a @Query property wrapper, initialize @Query with an "initial request".
  • When it is its enclosing view, initialize @Query with a "constant request".
  • When it is both views, initialize @Query needs a request Binding.

The Adding Parameters to Queryable Types guide was updated with a detailed description of those various cases.

@groue groue merged commit d4542be into main Apr 17, 2022
@groue groue deleted the dev/query-initializers branch April 17, 2022 17:17
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.

1 participant