facebook / facebook/lexical

Feature: Support storing Y.Map as a NodeState value

Open
#7,293 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

## Description

Currently, the NodeState/Yjs integration only allows "JSON" values to be stored as NodeState values. The NodeState itself is stores as a Y.Map, but you can not nest other shared data structures in it.

For situations where you would be collaborating on a subset of that value (e.g. a list of comments on a particular node) it would make sense to use a shared data type.

## Impact

It will be possible to do things with NodeState that you must currently do manually with Yjs outside of the lexical document.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.