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.

Get rid of null in onData(null)

See original GitHub issue

The is first argument, which is almost always defined as null in the onData() function is not used by the majority of developers and only adds confusion to the package.

I’ve met a couple of developers who seriously want to punch their computer because the null is so unnecessary.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
arunodacommented, Nov 8, 2016

I though I could get rid of this. But we should follow this. And v2 still have this.

1reaction
clayne11commented, Aug 9, 2016

You’re not quite following properly @ElegantSudo. The onData function that’s passed in is a callback function. You callback to it anytime there’s new data. It’s a fairly simple API that’s entrenched in the API of this library as well as the node ecosystem. It would pretty a painful breaking change to change it and there’s no real reason to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get rid of all these null values in Data Studio?
I have created this Dashboard in Data Studio. ... "Fruits" all the "Vegetables" become "null" so you get this "null" bar that I...
Read more >
Identify and Remove Nulls With Pandas - Medium
Remove null values: Let's imagine we want to delete the rows of our dataframe that contain null values. To do this, we can...
Read more >
Removing Null Values - Tableau Community
Hi, you wont be able to "remove" null values from the data without removing or filtering out the entire record. However its usually...
Read more >
How to hide null values from a Tableau filter - TAR Solutions
Another option to remove the null values from a Tableau filter is to use a set. Remember, this also excludes the values from...
Read more >
Bug: Filtering on Null Values - Domo Dojo
I've found that Domo card filters are unable to filter on a null value. Example: I have a field called Customer Group.
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