-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Entities: Add config to read and write transient edits from edited post #57500
Conversation
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
Size Change: +106 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
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 looks nice!
When I open a page in the site editor, it doesn't seem to load.
I think we really need something like this at some point but it would require commitment and time which I don't have for this particular PR at some point. Maybe folks like @jsnajdr or other that are familiar with the data package could resurface it at some point but for now, let's just close. |
What?
In several places, we want to access the "blocks" properly of a post/page before making any edits. the problem is the "blocks" property is not a regular post/page property, it's just a temporary property that is set when editing the post/page in a block editor. We used to solve this by either:
Both are bad solutions:
How?
This PR is an attempt to a third alternative. Basically we add awareness of how to read and write these transient properties to the core-data framework and ensure the selectors returns the transient properties as prefilled from the start with or without edits.
Testing Instructions
Mostly relying on e2e tests here and previous experiences.