[MGNLFE-335] Window object is not available during initializing PageEditorBridge in EditablePage's constructor on Angular SSR Created: 05/Oct/22  Updated: 12/Oct/22  Resolved: 12/Oct/22

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

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Canh Nguyen
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1.25d Time Spent: 1d
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLFE-336 Implementation Sub-task Completed Canh Nguyen  
MGNLFE-337 Review Sub-task Completed Robert Šiška  
MGNLFE-338 Pre-Integration QA (no SSR) Sub-task Completed Robert Šiška  
MGNLFE-339 QA Sub-task Closed Oanh Thai Hoang  
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)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: SaaS TPR - SPA
Sprint: DevX 21
Story Points: 2
Team: DeveloperX

 Description   

The PageEditorBridge#init is called in EditablePage constructor, so window object is not available when running on server. We need to move the logic to call PageEditorBridge#init after the component is attached to the view, then window object will be available to be used.


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