[MGNLFE-167] inEditorAsync not working with React and Vue Created: 03/Feb/22  Updated: 25/Apr/23  Resolved: 06/Apr/22

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

Type: Bug Priority: Critical
Reporter: Bartosz Staryga Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 0.25d
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLFE-131 Broken preview. Support navigation to... Closed
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
Date of First Response:
Epic Link: SPA Editor Backlog
Sprint: DevX 6, DevX 7
Story Points: 3
Team: DeveloperX

 Description   

Steps to reproduce

  1.  Install React or Vue demo from https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/browse
  2.  look for in code for window.location.search.includes('mgnlPreview') and replace it with await EditorContextHelper.inEditorAsync()

Expected results

Authoring experience working normally

Actual results

Template annotations not fetched

Workaround

Use alternative approach window.location.search.includes('mgnlPreview')

Development notes



 Comments   
Comment by Christopher Zimmermann [ 03/Feb/22 ]

Is it working in Angular? - or probably it simply has not been tested there? Just wondering since you specifiy React and Vue.

Comment by Bartosz Staryga [ 03/Feb/22 ]

Yeah it is working in angular, that's why it's weird

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