Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK: Remove client.editor.on from DotcmsLayout React component #31226

Open
2 tasks
Tracked by #30943
rjvelazco opened this issue Jan 24, 2025 · 0 comments
Open
2 tasks
Tracked by #30943

SDK: Remove client.editor.on from DotcmsLayout React component #31226

rjvelazco opened this issue Jan 24, 2025 · 0 comments

Comments

@rjvelazco
Copy link
Contributor

rjvelazco commented Jan 24, 2025

Parent Issue

#30943

Problem Statement

If we attempt to use the DotCMSLayout React component without initializing the client, it results in unexpected errors when editing the page within the UVE. This is a critical issue, especially since some frameworks can initialize the client on the server and may not require it on the client side.

error.mov

Steps to Reproduce

  1. Run the Next.js example.
  2. DO NOT import the dotClient on the client side.
  3. See the error

Image

Acceptance Criteria

Tasks

Preview Give feedback

dotCMS Version

master/trunk/SDK latest

Proposed Objective

User Experience

Proposed Priority

Priority 3 - Average

@rjvelazco rjvelazco changed the title SDK: Remove client.editor.on from DotcmsLayout component SDK: Remove client.editor.on from React DotcmsLayout component Jan 24, 2025
@rjvelazco rjvelazco changed the title SDK: Remove client.editor.on from React DotcmsLayout component SDK: Remove client.editor.on from DotcmsLayout React component Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant