slate-react 0.98.3 → 0.98.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/slate.d.ts.map +1 -1
- package/dist/index.es.js +0 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +0 -3
- package/dist/slate-react.min.js +1 -1
- package/package.json +1 -1
package/dist/slate-react.js
CHANGED
|
@@ -6689,8 +6689,6 @@
|
|
|
6689
6689
|
initialValue = props.initialValue,
|
|
6690
6690
|
rest = _objectWithoutProperties(props, _excluded);
|
|
6691
6691
|
|
|
6692
|
-
var unmountRef = React.useRef(false);
|
|
6693
|
-
|
|
6694
6692
|
var _React$useState = React__default['default'].useState(function () {
|
|
6695
6693
|
if (!slate.Node.isNodeList(initialValue)) {
|
|
6696
6694
|
throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(slate.Scrubber.stringify(initialValue)));
|
|
@@ -6732,7 +6730,6 @@
|
|
|
6732
6730
|
EDITOR_TO_ON_CHANGE.set(editor, onContextChange);
|
|
6733
6731
|
return function () {
|
|
6734
6732
|
EDITOR_TO_ON_CHANGE.set(editor, function () {});
|
|
6735
|
-
unmountRef.current = true;
|
|
6736
6733
|
};
|
|
6737
6734
|
}, [editor, onContextChange]);
|
|
6738
6735
|
|