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: error on duplicate partial name #1958

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

marvinhagemeister
Copy link
Collaborator

Show an error when we encounter a duplicate partial name during rendering:

export function Page() {
  return (
    <>
      <Partial name="foo">...</Partial>
      <Partial name="foo">...</Partial>
    </>
  )
}

Fixes #1950

@marvinhagemeister marvinhagemeister merged commit 7896005 into main Oct 18, 2023
@marvinhagemeister marvinhagemeister deleted the duplicate-partial branch October 18, 2023 18:04
marvinhagemeister added a commit that referenced this pull request Nov 7, 2023
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.

Partial rendering of elements is out of order
1 participant