System Information
- Strapi Version: 5.4.1
- Operating System: Macos Sequoia
- Database: sqlite
- Node Version: 18.20.4
- Yarn Version: 1.22.22
I am using strapi v5.4.1 I have a custom field inside of a custom plugin, which is generally connected to my api schema field, but edits the value of other fields of this specific api content type For example, I have a coins collection, and there are following attributes:
- coingroup
- coinTo
- coinFrom
So, the custom field of mine is connected to the coingroup, but edits coinTo and coinFrom fields, so in order to correctly fill the values I was using the unstable_useContentManagerContext
in development environment , but it is somewhat buggy in production environments, and I was getting the error:
'useDocumentLayout' must be used within the 'StapiApp' context
I am not sure whether it is a strapi bug or I am doing something wrong, but is there a way to fix it, so that everything will work in production environment?
If more details needed, I can leave it in comments below(or just simply edit this topic) or we can have a short discord call for more clear experience
Thank you