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.

style-prop-object does not allow null

See original GitHub issue

I use style variables that are conditionally set as objects only when required, and AFAIK it’s valid to provide null props to React.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Jan 20, 2017

@vdh thanks, this is now fixed in latest master.

1reaction
vdhcommented, Jan 20, 2017

I was also able to get a test failure by duplicating this existing test and adding = null to it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

style-prop-object does not allow null · Issue #812 - GitHub
I use style variables that are conditionally set as objects only when required, and AFAIK it's valid to provide null props to React....
Read more >
React warns about passed prop with value null, where the ...
I have a component that receives error as either a string or an object with 2 required properties. But null can ...
Read more >
How to Fix TypeError: Null is Not an Object in JavaScript
The JavaScript error TypeError: null is not an object occurs when a property is accessed or a method is called on a null...
Read more >
API - React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >
Input Components - React-admin - Marmelab
Tip: Use the sx prop rather than className to style the component. defaultValue. Value of the input if the record has no value...
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