question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MarkupText only renders first child when using fallback

See original GitHub issue

Steps:

  1. Go to https://codesandbox.io/s/1zzm1n6npq
  2. Open en.json and locate news.title property
  3. See the correct output in result window: <span>This <em>should work</em></span>
  4. Change news.title in index.js to news.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:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
billneff79commented, May 18, 2018

This is resolved in preact-i18n@1.2.1

1reaction
azizhkcommented, May 18, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found