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

Allow fragments and dynamic views in RouterBase #471

Merged
merged 1 commit into from Aug 27, 2022

Conversation

lukechu10
Copy link
Collaborator

Previously, Router would panic if the children was node a single node. This meant that fragments and dynamic views had to be wrapped by another node (often a <div> or a <main>). This PR removes this restriction.

@lukechu10 lukechu10 added C-enhancement Category: new feature or improvement to existing feature A-router Area: router labels Aug 27, 2022
@lukechu10 lukechu10 added this to the v0.8 milestone Aug 27, 2022
@codecov
Copy link

codecov bot commented Aug 27, 2022

Codecov Report

Merging #471 (865b3e5) into master (75be1ca) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #471      +/-   ##
==========================================
- Coverage   64.43%   64.39%   -0.04%     
==========================================
  Files          52       52              
  Lines        8387     8392       +5     
==========================================
  Hits         5404     5404              
- Misses       2983     2988       +5     
Impacted Files Coverage Δ
packages/sycamore-core/src/generic_node.rs 100.00% <ø> (ø)
packages/sycamore-router/src/router.rs 25.00% <0.00%> (-0.43%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lukechu10 lukechu10 merged commit cfe8ef2 into master Aug 27, 2022
@lukechu10 lukechu10 deleted the allow-fragments-in-router branch August 27, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-router Area: router C-enhancement Category: new feature or improvement to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant