Skip to content

[lexical-website] Chore: add example for how to bootstrap collab ydoc on the server - #7830

Merged
etrepum merged 3 commits into
meta:mainfrom
james-atticus:patch-1
Sep 25, 2025
Merged

etrepum merged 3 commits into
meta:mainfrom
james-atticus:patch-1

Conversation

@james-atticus

Copy link
Copy Markdown
Contributor

Description

shouldBootstrap is not recommended for use, but there's currently no examples of how to bootstrap a document on the server. This change adds a basic example to the website docs.

Split out from https://github.com/facebook/lexical/pull/7616/files#r2360141159

@vercel

vercel Bot commented Sep 19, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Sep 25, 2025 3:34am
lexical-playground Ready Ready Preview Comment Sep 25, 2025 3:34am

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 19, 2025
etrepum
etrepum previously approved these changes Sep 19, 2025

@etrepum etrepum left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely an improvement but I think the real win would be a runnable examples/* project that has a full stack project with a websocket server that uses this bootstrap function (or perhaps refactor one of the existing collab examples accordingly)

@etrepum
etrepum added this pull request to the merge queue Sep 25, 2025
Merged via the queue into meta:main with commit 42b4fa6 Sep 25, 2025
@etrepum etrepum mentioned this pull request Oct 1, 2025

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 0397b073 Deployed Sep 25, 2025 by vercel[bot]
Preview – lexical — 0397b073 Deployed Sep 25, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants