Details
-
Story
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
Description
RegiterEvents component with PageEditorBridge (interactivity component, just use hook, no render needed)
- Use function components: https://nextjs.org/docs/messages/class-component-in-server-component
- Moving componentDidMount from EditablePage to this component and use react hook. Consider draft ex: https://git.magnolia-cms.com/projects/MODULES/repos/frontend-helpers/pull-requests/220/diff#samples/next-js-13-with-react-editor-new/packages/react-wrap-client-component-typescript/src/RegisterEvents.tsx
- Add 'use client' in top of file (react will ignore it by default so maybe no harm at all)
Checklists
Acceptance criteria
Attachments
1.
|
Implement |
|
In Progress | Phong Le Quoc |
2.
|
Review |
|
To Do | Unassigned |
3.
|
PiQA |
|
To Do | Unassigned |
4.
|
QA |
|
To Do | Unassigned |