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.

[v2] re-rendering devours previous lines?

See original GitHub issue

This only seems to happen on Hyper for me, when using tmux with a log line and not all the time, but I managed to get a recording of it, and my npm pick-updates npm branch seems to reproduce it for me fairly often.

Repro Steps

  1. Get Hyper and tmux
  2. git clone https://github.com/npm/cli && cd cli
  3. make link
  4. npm pick-updates
  5. Move your cursor around.

Results

kapture 2019-02-20 at 11 42 23

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
vadimdemedescommented, Feb 24, 2019

After implementing 3 different functions for wrapping terminal output, I decided to try to patch wrap-ansi itself: https://github.com/chalk/wrap-ansi/pull/29. It still has one issue left to fix, but I thought it would be useful to give you an update and a way to track progress of this issue.

0reactions
vadimdemedescommented, Mar 4, 2019

Fixed in 2.0.0-17!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent re-rendering of components that have not ...
Personally I would avoid React.memo / React.useRef / React.useCallback . The simplest solution to your example is just create another ...
Read more >
How to check if your component rerendered - and why!
Using React DevTools to highlight what components rerendered. There's a checkbox well hidden in the React DevTools settings that allows you to ...
Read more >
React re-renders guide: everything, all at once
Comprehensive guide on React re-renders. The guide explains what are re-renders, what is necessary and unnecessary re-render, ...
Read more >
Re-rendering Components in ReactJS
React components automatically re-render whenever there is a change in their state or props. A simple update of the state, from anywhere in...
Read more >
How to debug unnecessary rerenders in React | Bryce's Blog
After you end the Profiler session, you'll be able to drill down into individual components to see their render metrics. Under the “Why...
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