-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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. |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
ae559f3
to
ce05f09
Compare
ce05f09
to
0434d60
Compare
No description provided.