[MGNLFE-568] RegisterEvents component with PageEditorBridge Created: 05/Jul/23  Updated: 18/Oct/23  Resolved: 18/Oct/23

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Phong Le Quoc
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 17d 7.25h Time Spent: 17d 7.25h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLFE-624 Implement Sub-task In Progress Phong Le Quoc  
MGNLFE-625 Review Sub-task To Do  
MGNLFE-626 PiQA Sub-task To Do  
MGNLFE-627 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: React RSC
Story Points: 5
Team: DeveloperX
Work Started:

 Description   

 RegiterEvents component with PageEditorBridge  (interactivity component, just use hook, no render needed)

  • Add 'use client' in top of file (react will ignore it by default so maybe no harm at all)

 

 

Ref code: 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



 Comments   
Comment by Phong Le Quoc [ 18/Oct/23 ]

Move register code for page bridge and post messages to a separated component is possible. We also can use custom hook to do this.

 

.....Update reference code

Generated at Mon Feb 12 05:48:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.