-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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: allow embedding two pages generated into the same page in "embedded" mode #9610
Conversation
🦋 Changeset detectedLatest commit: 72d2636 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@ejmurra a very small note - don't put a space before the "x" when checking the boxes in the PR description. GitHub will then render them as check boxes |
Can you clarify what this is fixing? Why would the timestamp not be sufficient? Or why don't you just give the apps different names? How can you be sure the two apps have different leaf nodes? |
It's not two apps. It's a single app that renders two pages and tries to inline them into a separate 3rd page. Repro steps here: #9576 I'm no svelte expert, but my understanding after spending time to create this PR is that the leaf nodes are going to be unique in the same app and that there will be one for each page. Please correct me if I'm wrong about that! |
Ah, sorry I missed the link to the issue. Usually people put that above the boilerplate. If you do that next time hopefully it will keep it from getting overlooked |
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.
you'll need to run pnpm format
to fix the failing lint job
I've added an integration test for this in |
We try to avoid adding new test projects and just reuse existing ones. Perhaps that won't be possible here with the use of the |
baffled by these test failures |
thank you! |
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.This is an attempt to fix #9576
I wasn't sure how to write tests for this but will happily add some with some guidance.