The EditViewLayout and ListViewLayout have been rewritten
In Strapi 5, some admin panel hooks have been removed from the Redux store and a new useDocumentLayout hook is introduced.
This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
Breaking change description
In Strapi v4
The content-manager_editViewLayoutManager and content-manager_listViewLayoutManager hooks can be used.
In Strapi 5
- The
content-manager_editViewLayoutManagerandcontent-manager_listViewLayoutManagerhave been removed from the Redux store. - A new
useDocumentLayouthook is available.
Migration
This section regroups useful notes and procedures about the introduced breaking change.
Notes
Additional information about hooks can be found in the Admin Panel API for plugins documentation.
Manual procedure
Plugins developers taking advantage of the content-manager_editViewLayoutManager and content-manager_listViewLayoutManager hooks in their plugins need to refactor their code.