-
Notifications
You must be signed in to change notification settings - Fork 46.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjacent text nodes in SSR should have comments between them despite …
…components (#11109) * Add a failing test for text nodes within components * Reset the text node flag only when emitting tags This ensures we don't reset it when we exit components that return strings. * Add a failing test for a more complex tree * Also reset text flag when emitting a footer This fixes the {'a'}</div>{'b'} case and prevents an unnecessary comment before 'b'.
- Loading branch information
Showing
2 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters