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

Add HOC for selected block #10

Closed
salcode opened this issue Feb 1, 2022 · 0 comments
Closed

Add HOC for selected block #10

salcode opened this issue Feb 1, 2022 · 0 comments

Comments

@salcode
Copy link
Owner

salcode commented Feb 1, 2022

Currently, the SelectedBlockAttributes component uses useSelect and displays the contents.

We could move the useSelect into a separate Higher Order Component called something like WithSelectedBlock.

salcode added a commit that referenced this issue Feb 1, 2022
This Higher Order Component allows us to separate the data fetching
and the data rendering.

See #10
salcode added a commit that referenced this issue Feb 1, 2022
Modify SelectedBlockAttributes to accept prop block

See #10
salcode added a commit that referenced this issue Feb 1, 2022
salcode added a commit that referenced this issue Feb 1, 2022
@salcode salcode closed this as completed Feb 1, 2022
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

1 participant