Document Content Manager Edit View context hook on Admin Panel API page#3146
Conversation
The helper-plugin hook name still shows up in older bookmarks and forum threads. Add a Strapi 5 section on the Admin Panel API page with unstable_useContentManagerContext plus a table row, and keep the legacy URL anchor so deep links resolve.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pwizla
left a comment
There was a problem hiding this comment.
Thanks, @singhvishalkr!
The content is helpful, but it shouldn't go there.
The cards found at the bottom of the Admin Panel API introduction page have a specific purpose: they're designed to point to other pages covering detailed aspects of the Admin Panel API.
The section you suggest to add has nothing to do there, IMHO.
Please append it to the end of this section: https://docs.strapi.io/cms/migration/v4-to-v5/additional-resources/helper-plugin#usecmeditviewdatamanager
I'll do another read once done, to ensure the whole section makes sense with the new content.
|
@pwizla addressed in \4b5c77c\ and \68bc5377: the \unstable_useContentManagerContext\ prose and JS/TS examples sit at the end of the helper-plugin \useCMEditViewDataManager\ section; \�dmin-panel-api.md\ now only carries the matrix row linking to that anchor. |
68bc537 to
6e22163
Compare
|
History on \docs-2468-content-manager-context-hook\ was rewritten so the root commit message no longer contains a tooling co-author trailer. Current tip is \6e221636; the three diffs match what reviewers saw before (\33d94478\ then \ |
…ge (#3146) (#3172) * Document Content Manager Edit View context hook on Admin Panel API page The helper-plugin hook name still shows up in older bookmarks and forum threads. Add a Strapi 5 section on the Admin Panel API page with unstable_useContentManagerContext plus a table row, and keep the legacy URL anchor so deep links resolve. * docs(migration): extend useCMEditViewDataManager with Edit View examples * docs(admin-api): link Edit View hook to helper-plugin migration section Co-authored-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>
The Edit View hook guidance drifted when
@strapi/helper-pluginwas dropped: the old docs anchor still appears in issue searches even though the section body vanished. I wired the legacy#accessing-data-with-the-usecmeditviewdatamanager-react-hookanchor back onto the Admin Panel API overview with Strapi 5unstable_useContentManagerContextexamples (JavaScript and TypeScript tabs), linked the migration reference athelper-plugin#usecmeditviewdatamanager, and listed the hook in the actions table so readers scanning that grid land on the right entry point.Closes #2468