MarkupText only renders first child when using fallback
See original GitHub issueSteps:
- Go to https://codesandbox.io/s/1zzm1n6npq
- Open
en.json
and locatenews.title
property - See the correct output in result window:
<span>This <em>should work</em></span>
- Change
news.title
inindex.js
tonews.whatever
Expected Result:
The default text
<span>This <b>This doesnt work</b></span>
is rendered in the result window
Actual Result:
<span>This </span>
is rendered in the result window
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Which renders first child or parent in reactjs - Stack Overflow
When componentDidMount fires you can do DOM manipulation so it makes sense that parent only receives it after children are mounted.
Read more >React.Suspense only renders the first child in Enzyme. #34
Hi, I tried to test on a component with multiple children wrapped in , like: Only the first div rendered in test framework....
Read more >All You Need To Know About React Suspense - CopyCat Blog
It suspends the component from rendering until the required data is obtained and provides a fallback UI during the fetch duration. What is...
Read more >ProseMirror Reference manual
Produce a new Fragment by mapping all this fragment's children through a function. some(f: fn(Node) → bool) → ?Node. Returns the first child...
Read more >lxml.html
Since version 2.0, lxml comes with a dedicated package for dealing with HTML: ... from this element and its children, using a CSS...
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 Free
Top 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
This is resolved in
preact-i18n@1.2.1
Created a PR https://github.com/synacor/preact-i18n/pull/21