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.

Avoiding hard crash on empty TippyGroup

See original GitHub issue

I have an issue with a dynamic collection of tooltips. Not a major issue, but may be relevant as an improvement unless the behaviour is for some reason sought. Given the code:

            <TippyGroup>
                {tippys.map(tippy => tippy)}
            </TippyGroup>

This is unproblematic in itself, but crashes if the tippys array is empty. Wrapping the entire block in a tippys.length conditional solves the problem, but IMHO allowing empty TippyGroups would make the library behave more as expected when working with React/JSX in general.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
atomikscommented, Jun 7, 2019

Oh right yeah… if you don’t specify a delay prop on the <TippyGroup> it crashes

This is a tippy.js fault I guess… TippyGroup & tippy.group() are being replaced in the next version with something new anyway (which doesn’t do that default param thing).

0reactions
atomikscommented, Sep 28, 2019

Should be no issues in 3.0 with new <TippySingleton /> API

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Avoid a Caffeine Crash - Death Wish Coffee Company
1. Spread out your caffeine consumption throughout the day. · 2. Get an adequate amount of sleep. · 3. Make sure you're drinking...
Read more >
Ways to Avoid a Caffeine Crash - Community Coffee
Don't Consume Caffeine on an Empty Stomach Food gives us the energy we need to perform at our best and make it through...
Read more >
Diagnosing an ASP.NET Core hard crash
The immediate crash was due to an exception being thrown in an async void method. Relevant threading aspects: I start the ASP.NET Core...
Read more >
r shiny Prevent an app from crashing when numericInput is ...
I have a very simple Shiny app that is working. The user enters a value on box 1 and then in box 2...
Read more >
[Guide for Beginners] How to Fix Hard Drive Crash?
This page offer the best solution to fix logical hard drive crash and physical hard drive crash,also the best way to recover data...
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