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

Create a selector/resolver pair for user / author details #22270

Closed
draganescu opened this issue May 11, 2020 · 2 comments
Closed

Create a selector/resolver pair for user / author details #22270

draganescu opened this issue May 11, 2020 · 2 comments
Labels
[Package] Core data /packages/core-data [Type] Enhancement A suggestion for improvement.

Comments

@draganescu
Copy link
Contributor

Is your feature request related to a problem? Please describe.
This idea appeared in the discussion on #19894 (comment).

Describe the solution you'd like
We should have this selector as an effort to cover all WP endpoints in core/data, and also because getting author details looks like a common situation.

Describe alternatives you've considered
Not adding this and continue to use apiFetch.

@draganescu draganescu added [Type] Enhancement A suggestion for improvement. [Package] Core data /packages/core-data labels May 11, 2020
@Mamaduka
Copy link
Member

Hi, @draganescu

I think we can close this one. A user details can be fetched via wp.data.select('core').getUser(userId); selector.

The code referenced in the original comment was later updated to use this selector.

@draganescu
Copy link
Contributor Author

🆗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Core data /packages/core-data [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants