Site Editor: Remove/Deprecate edited post type and edited context state. #66921
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Type] Code Quality
Issues or PRs that relate to code quality
As the site editor is growing to become a multi page app, it doesn't really make sense to have an edited post type and context state in it.
That state is forcing us today to have a two synchronization mechanism between the url and the state causing some issues related to performance and some hidden bugs at times.
Ideally the routes would just pass the post type, post id to the editor component.
That said, in order to do that, we need to refactor the existing components and hooks to avoid using these selectors:
This issue just tracks this work.
The text was updated successfully, but these errors were encountered: