import Intro from '/docs/snippets/breaking-change-page-intro.md'
import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md'
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.
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#
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.