Skip to content

[Release] Version packages#4375

Merged
zbeyens merged 1 commit into
mainfrom
changeset-release/main
Jun 17, 2025
Merged

[Release] Version packages#4375
zbeyens merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@platejs/core@49.0.4

Patch Changes

  • #4373 by @zbeyens

    • Fixes block-draggable caused error when toggling readOnly: Rendered fewer/more hooks than expected #4374
    • Prevent rendering the editor until the value is loaded (when value is async or skipInitialization is true).
    • Added support for both synchronous and asynchronous functions in the value option for createPlateEditor and usePlateEditor. If async, usePlateEditor will trigger a re-render when the value is loaded.
    • Added onReady callback option to createPlateEditor and usePlateEditor called after (async) editor initialization.
    const editor = usePlateEditor({
      value: async () => {
        const response = await fetch('/api/document');
        const data = await response.json();
        return data.content;
      },
      onReady: ({ editor, value }) => {
        console.info('Editor ready with value:', value);
      },
    });

platejs@49.0.4

@platejs/utils@49.0.4

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 2:28pm

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Jun 17, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. release labels Jun 17, 2025
@zbeyens zbeyens merged commit 840b55f into main Jun 17, 2025
4 of 5 checks passed
@zbeyens zbeyens deleted the changeset-release/main branch June 17, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

block-draggable caused error when toggling readOnly: Rendered fewer/more hooks than expected

1 participant