Skip to content
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

fix(core): re-use previously prepared workspace configs #4867

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Aug 24, 2023

Description

Currently, when using <Studio config={[workspaceOptions1, workspaceOptions2]}> each workspace will still be setup/prepared at each render, even if they're unchanged, causing the studio to reload. This PR fixes this by keeping a weakmap between each given workspace options and the prepared workspace summary, and using the previously prepared one where there's no change between renders.

What to review

  • Is this a sound approach?

Notes for release

  • N/A

@bjoerge bjoerge requested review from rexxars and ricokahler August 24, 2023 20:19
@vercel
Copy link

vercel bot commented Aug 24, 2023

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

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Aug 25, 2023 4:38pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 4:38pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Aug 25, 2023 4:38pm

@github-actions
Copy link
Contributor

github-actions bot commented Aug 24, 2023

Component Testing Report Updated Aug 25, 2023 4:44 PM (UTC)

File Status Duration Passed Skipped Failed
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/PortableTextInput.spec.tsx ✅ Passed (Inspect) 2m 54s 25 13 0

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

Successfully merging this pull request may close these issues.

2 participants