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 for #7: Address nested slot issues and more #18

Conversation

patricknelson
Copy link
Contributor

@patricknelson patricknelson commented Jun 6, 2023

Closed this out in favor of patricknelson/svelte-retag#5 on separate svelte-retag package. Original description is below.


🚨 Warning: This is a work in progress, intended as a proof of concept for now only 🚨

Primarily addresses #7 by doing the following:

  1. Ensure properly selecting own slots and not that of descendants and
  2. Ensure we're setting up and tearing down state on connect/disconnect, necessary when nested elements render from inside out.
  3. Consistent line endings with semicolons (right now it is mixed, probably due to copy/paste).
  4. This depends on changes from Fix for #12 (take 2): Ensure original named slot tags are retained when not using shadow root. #15

This may necessitate further refactor later. Right now it's still using my own IDE's code style so -- sorry about that. Please consider adopting this but if you'd prefer, I can still reformat to match repo style if desired. See whitespace ignored version here for cleaner diff: https://github.com/crisward/svelte-tag/pull/18/files?diff=split&w=1

…en not using shadow root. Take 2 required to account for new unit testing framework (Vitest) from PR #14.
…ting own slots and not that of descendants and 2.) Ensure we're setting up and tearing down state on connect/disconnect, necessary when nested elements render from inside out.
@patricknelson patricknelson force-pushed the issue-7-fix-nested-slot-issues-and-more branch from a23d8b7 to 8f42f19 Compare June 6, 2023 04:46
@patricknelson patricknelson marked this pull request as draft June 6, 2023 04:50
@patricknelson
Copy link
Contributor Author

Closing this out in favor of patricknelson/svelte-retag#5 on separate svelte-retag package.

@patricknelson patricknelson deleted the issue-7-fix-nested-slot-issues-and-more branch June 7, 2023 04:27
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.

None yet

1 participant