Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I see the initial value inside Client is set to []. How is the editor initialized with a non-empty array initial value? I’m seeing Uncaught Error: Cannot get the start point in the node at path [] because it has no start text node. with a basic setup.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

amilichcommented, Oct 10, 2020

Was able to figure it out - seems like adding initial content to the document is possible, but only after the component has mounted - otherwise, the YJS doc and slate value may be out of sync.

BitPhinixcommented, Jan 17, 2021

Hi @amilich,

This should be solved with the 1.0.0 release. Slate-yjs will now overwrite the slate value with the content inside the yjs shared type on load.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve initial value problems - Krista King Math
Problems that provide you with one or more initial conditions are called Initial Value Problems. Initial conditions take what would ...
Read more >
Initial value problem - Wikipedia
In multivariable calculus, an initial value problem (IVP) is an ordinary differential equation together with an initial condition which specifies the value ...
Read more >
Differential Equations : Initial-Value Problems - Varsity Tutors
Initial Value Problems : Example Question #2 ... Explanation: So this is a separable differential equation, but it is also subject to an...
Read more >
Initial-Value Problems | Calculus I - Lumen Learning
Initial -value problems arise in many applications. Next we consider a problem in which a driver applies the brakes in a car. We...
Read more >
Initial value & common ratio of exponential functions (video)
In an exponential function of the form f(x) = a*b^x, the initial value is usually taken to be the value of f(0), or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found