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
inferno4 {0} not rendered in DOM #1292
Comments
I have never seen this before. We need steps to reproduce to be able to identify the issue. |
@Havunen We use Here is example, I just included |
Yeah this is bug, also there seems to be performance issue in inferno-compat. It seems like in https://github.com/infernojs/inferno/blob/master/packages/inferno-compat/src/index.ts#L192-L194 Let's hotfix this. |
@Havunen We trying to avoid using What would be alternative for |
It depends: if all you want is clone and assign props, then you can use |
… not rendering falsy text values (0 and empty string). Github #1292
Just released 4.0.7 this is fixed there. Thanks for reporting the issue. Closing |
Not sure why I have this problem but I have pager component with variable
z === 0
it was renders fine in DOM in inferno3. Now after inferno4 upgrade I need to add {variable + ''} to make sure0
is visible.Strange thing that I could not reproduce this on here: https://jsfiddle.net/vrydxohy/
and React 16 renders 0 just fine: https://jsfiddle.net/sfbg7eL3/
Who is responsible for not rendering 0 into DOM HTML ? it does not look like inferno4 problem and I use latest
babel-plugin-inferno
andbabel-plugin-syntax-jsx
packages.The text was updated successfully, but these errors were encountered: