-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Edit Post: Remove SlotFillProvider as rendered by block editor #15988
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works correctly in my tests, thank you for this change 👍
{ children } | ||
</DropZoneProvider> | ||
</SlotFillProvider> | ||
<DropZoneProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes me wonder about this as well :) It feels like it's the same questions could be asked for this provider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes me wonder about this as well :) It feels like it's the same questions could be asked for this provider.
Probably. Let's sort it out separately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add it to the playground as well.
In rebasing this, I sought to add a CHANGELOG mention. In doing so, it occurs to me:
Thoughts on this last point? |
Note to self: Consider how to reflect chosen approach in the native variant of the component:
|
In reflecting on this and discussing with @jorgefilipecosta , I'm thinking to suggest the following alternative, which is almost the opposite of what was originally proposed here:
Proposed benefits:
Possible downsides:
|
@aduth yes, in my mind I'd have suggested to switch Not that I disagree a lot but the reasoning to switch those as proposed is not clear. |
I was hoping my last comment would serve to exhaustively demonstrate why 😄 The problem for me (aside from the fact that it's a breaking change) is that, looking at the source of |
I think I disagree with this, it's still establishing a context (maybe it's a little bit more implicit) but it is creating a data store and even creating |
Oh, I totally missed |
yes, I'd prefer that if possible :) |
So just to recap the plan is to have: Is that the case? |
@jorgefilipecosta Right. I'm not sure what (if any) form I have an incomplete rebase toward the original propose, with some additional changes I will try to push up before my end of day. |
ab0426f
to
742a8f3
Compare
Okay, pushed rebase, including:
|
@@ -1,5 +1,9 @@ | |||
## 2.2.0 (2019-06-12) | |||
|
|||
### Breaking Changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved to ## Master
I guess.
742a8f3
to
0cdecd2
Compare
0cdecd2
to
98cc2b5
Compare
Extracted from #14715
Unblocks #15949
This pull request cherry-picks the ade6069 commit from #14715. This is necessary both for the reusable blocks embedded editor refactor, and for the custom widgets integration of block editor. Currently, because the BlockEditorProvider component renders the context provider for Slot/Fill, it is not possible to render slots outside the editor. This prevents block inspector rendering as in the #14715 refactoring and Popover rendering as in #15949.
It may be the case that we want to expose a component with "easy" bundled behavior, but it should still be possible to opt out of behaviors in advanced use cases like described above.
#14715 proposes additional enhancements to Slot/Fill behavior to allow whitelisted "proxying" to allow layered Fill capturing. It's not relevant for this pull request, but noteworthy for context.
Testing Instructions:
Verify there are no regressions in Slot/Fill (block inspector, block toolbar, popovers, etc).