Skip to content

feat: update docs for native draft mode #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arvinpoddar
Copy link
Contributor

No description provided.

@@ -136,8 +136,7 @@ runtime.registerComponent(HelloWorld, {

</Step>
<Step title="Update the root layout">
In your root layout, wrap your app with the `MakeswiftProvider` component created in the last step, import the registered components, and add the `DraftModeScript` to the `head`.
This script enables [Draft Mode](https://nextjs.org/docs/app/building-your-application/configuring/draft-mode) when inside the Makeswift builder.
In your root layout, wrap your app with the `MakeswiftProvider` component created in the last step and import the registered components.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this!


`v0.24.0` of the runtime rethinks the way we handle draft/preview mode. Refer to
the [official release
notes](https://github.com/makeswift/makeswift/releases/tag/%40makeswift/runtime%400.24.0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link doesn't appear to work yet. Is that correct? Is that going to be published soon?

Copy link
Contributor Author

@arvinpoddar arvinpoddar Apr 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this will be the release notes URL for v0.24.0, when it's available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants