UNPKG

@wordpress/edit-post

Version:
28 lines (24 loc) 652 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = EditorInitialization; var _listenerHooks = require("./listener-hooks"); /** * Internal dependencies */ /** * Data component used for initializing the editor and re-initializes * when postId changes or on unmount. * * @param {number} postId The id of the post. * @return {null} This is a data component so does not render any ui. */ function EditorInitialization({ postId }) { (0, _listenerHooks.useBlockSelectionListener)(postId); (0, _listenerHooks.useUpdatePostLinkListener)(postId); return null; } //# sourceMappingURL=index.js.map