Skip to content

Fine-Grained Query initializers#17

Merged
groue merged 2 commits intomainfrom
dev/query-initializers
Apr 17, 2022
Merged

Fine-Grained Query initializers#17
groue merged 2 commits intomainfrom
dev/query-initializers

Conversation

@groue
Copy link
Copy Markdown
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