Avoiding hard crash on empty TippyGroup
See original GitHub issueI 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:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh right yeah… if you don’t specify a
delay
prop on the<TippyGroup>
it crashesThis 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).Should be no issues in 3.0 with new
<TippySingleton />
API