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.

Issue with remove elements in ArcherContainer

See original GitHub issue

Hey, if remove an element from the start of array I have this issue. If I remove from the end of the array - I don’t have this problem. Maybe whoever has an idea of how to fix it I use version 1.5 React 16.8

  <ArcherContainer noCurves={true} strokeColor={colors.blue500} strokeWidth={1} arrowThickness={7}>
{....}// here i have array of cards
</>

image

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ilyaburmakacommented, Feb 26, 2020

I found an issue in my code. Problem with keys in the map () when I use the index as key - I have this bug if I used id of element for a key - I don’t have a bug. Here you can view example here

Good Luck!

1reaction
pierpocommented, Feb 26, 2020

Hi! Could you provide a minimal reproducing example? 😉

Video or code example?

Code example 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing an archer element from DOM causes crash #96
I am working on a tree view structure. When I remove one of the nodes from my tree (wrapped in an archer element)...
Read more >
Unexpected behavour when removing an item from an array ...
It's the deleting fields that I'm having an issue with. The fields are rendered from an array within the component's state but when...
Read more >
React-archer: Draw Arrows Between React Elements - Morioh
Try using the refreshScreen instance method on your ArcherContainer element. You can access it through the ref of the component.
Read more >
Remove an Item from a List in React - Robin Wieruch
Learn how to remove an item from a list in React with React's state. It's a common task to delete an item from...
Read more >
How to Remove an Item from a State Array in React
In this article, we're going to learn how to easily remove an item from a state array in React. Subscribe to Coding Beauty...
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