Breaking change in behavior in interpolation (or bug?) 7.2.1 -> 8.1
See original GitHub issueHi, I came across this when upgrading to Preact 8 recently. Iām not sure of bug or new feature šø but I didnāt find anything about it in the migration docs.
Open console and execute these two gists.
First 8.1: https://esnextb.in/?gist=7e1fb23c1b9d0dc43f1d6b9069ed5190
It logs ["xx", "Hello"]
.
Then 7.2.1: https://esnextb.in/?gist=e9b1d7c4da061b144c67d93291824d96
It logs: ["xxHello"]
The only difference is the Preact version.
(adding the important parts of the code below if esnextb.in goes away)
const val = 'xx'
render(<Comp>{val}Hello</Comp>, document.getElementById('app'))
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
components/CHANGELOG.md at main Ā· angular ... - GitHub
Breaking Changes. material. The following components have been re-implemented based on MDC: mat-autocompleteĀ ...
Read more >PHP 7 ChangeLog
Fixed bug #79971 (special character is breaking the path in xml function). ... Fixed bug #79068 (gdTransformAffineCopy() changes interpolation method).
Read more >News ā PROJ 9.1.1 documentation
Change order of horizontal and vertical operations when dealing with WKT1 / PROJ4 compound CRS (#3127). Coordinate Operations: Implement Vertical Offset andĀ ...
Read more >Release Notes :: NVIDIA Deep Learning cuDNN Documentation
The bug affected cuDNN 8.5 and 8.6 built with both CUDA 11.x and CUDA 10.2. ... Compared to cuDNN 8.1.0, there are known...
Read more >Changelog - Cypress Documentation
Experimental Breaking Changes:āā session() will no longer fail validation when false is returned from the validate callback. Fixes #21398, #24205, and #24593.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
React renders a separate text node for each child:
Demo: https://codesandbox.io/s/ol0y4v26lq
Since Preact is consistent with React here and the current behaviour is easy to reason about, I think this issue can be closed. Please let me know if you can think of a strong reason to change this.
Yeah, Iām stuck on that. I guess really the only thought here is āwhat does react do?ā, and AFAIK it just treats children as whatever you pass, so itād be the Array of strings/numbers/etc.