-
Notifications
You must be signed in to change notification settings - Fork 63
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
💦 building widget state #1382
💦 building widget state #1382
Conversation
5d28c85
to
31e93aa
Compare
31e93aa
to
6bf4414
Compare
🦋 Changeset detectedLatest commit: a051955 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Just a few things leftover from testing to tidy up, but overall this looks good. Serializing widget state will open up the door to some cool stuff!!
/** | ||
* Write widget state to file in public folder | ||
*/ | ||
export function transformWidgetsToFile( |
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.
Steve and I chatted about this - there is some duplication between this and the notebook outputs
caching. These also follow a slightly different pattern than other on-disk caching that is saved to the /cache
folder. Definitely potential to normalize and deduplicate code... but for now, I think this standalone function is fine.
703e940
to
5d28c85
Compare
@@ -254,7 +255,9 @@ export async function transformMdast( | |||
frontmatter, | |||
mdast, | |||
references, | |||
}; | |||
widgets, | |||
something: 'else', |
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.
Needs a final pass!
Co-authored-by: Franklin Koch <[email protected]>
Aims:
Todo: