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.

Initial value?

See original GitHub issue

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:
• Created 3 years ago

1reaction
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.

0reactions
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.

Top 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 ...
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 ...
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...
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...
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...

Troubleshoot Live Code

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