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.

Don't dispose previous pages in dev mode

See original GitHub issue

In dev mode, when navigating from e.g index page to page B, it will then after a while destroy the index page: Disposing inactive page(s): /. Why not keeping it in memory, at least as long as there aren’t too many pages built?

Rather than disposing on timeout, it appears better to me to dispose pages when there are too many of them in memory.

This would allow to then have fast client-side transitions (after the first load), which allows to have a feel of these transitions without needing to deploy to prod.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
timneutkenscommented, Oct 5, 2017
1reaction
arunodacommented, May 31, 2017

“too many pages” is kind a hard to decide. What we can do is to provide an option on asking how many pages to buffer in the memory.

I like that and we can default that to 2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JFrame.dispose() vs System.exit() - java - Stack Overflow
JFrame.dispose(); causes the JFrame window to be destroyed and cleaned up by the operating system. According to the documentation, ...
Read more >
CA2202: Do not dispose objects multiple times - Visual Studio ...
To fix a violation of this rule, change the implementation so that regardless of the code path, Dispose is called only one time...
Read more >
Activity state changes - Android Developers
When an app enters multi-window mode, available in Android 7.0 (API level 24)and higher, the system notifies the currently running activity ...
Read more >
Simple app state management - Flutter documentation
It also automatically calls dispose() on CartModel when the instance is no longer needed. If you want to provide more than one class,...
Read more >
4 Types of Memory Leaks in JavaScript and How to Get Rid Of ...
In this article we will explore common types of memory leaks in client-side JavaScript code. We will also learn how to use the...
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