跳到主要内容

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.

🔌 Is this breaking change affecting plugins?Yes
🤖 Is this breaking change automatically handled by a codemod?No

Breaking change description

In Strapi v4

The content-manager_editViewLayoutManager and content-manager_listViewLayoutManager hooks can be used.

In Strapi 5

  • The content-manager_editViewLayoutManager and content-manager_listViewLayoutManager have been removed from the Redux store.
  • A new useDocumentLayout hook 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.