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

Update data-api.md to remove accidental double word #164

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guides/data-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const { something, somethingElse } = useSelect( function(select) {

![Loading & Error Icons](../static/img/data-api-loading-error.png)

You get get access to whether or not a select statement has been resolved by using the `hasFinishedResolution` selector that is provided on every core store.
You can get access to whether or not a select statement has been resolved by using the `hasFinishedResolution` selector that is provided on every core store.

The `hasFinishedResolution` selector takes the name of the selector you want to monitor as the first parameter and the parameters you provided the selector as the second parameter. Because of that it is a good pattern to put the parameter for the main selector into a variable on its own and list the parameter in an array. You can then use this array to spread the parameter into the selector itself and also provide them to the `hasFinishedResolution` selector.

Expand Down
Loading