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.

Cache Remains and Crash the New Project

See original GitHub issue

Describe the bug The new project might constantly crash and the whole site will go blank if you try to interact with it. This is probably caused by the remaining local storage cache. Since you have opened another project and interacted with the sidebar before in the custom preset, it remembers the cache will crash your new project that has the same project name or function name (unsure) if the parameters don’t match.

To Reproduce Steps to reproduce the behavior:

  1. Go create and run dev for any project using the default project name and function name
  2. Play with its sidebar in the custom preset
  3. Close this first project
  4. Now create another project using the default project name and function name in a different folder
  5. Play with its sidebar in the custom preset
  6. See the error

Expected behavior The site will go completely blank with error messages in the console stating that some of the sidebar values are null

Screenshots

https://user-images.githubusercontent.com/34775424/170353166-72d7e02a-55e4-41d9-bf0c-9fe9ee5a7e77.mov

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: chrome
  • Version: 2.0.0-beta.7

Additional context Local Cache Memory Related.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
munusshihcommented, May 25, 2022

I’ve done some different combinations and surprisingly was unable to recreate the error even with the same function name in different folders… but these are the error stacks

  • The above error occurred in the <SideBar> component
  • Uncaught TypeError: Cannot read properties of undefined (reading “hasOwnProperty”)
0reactions
lnoltecommented, Sep 1, 2022

This could really be about the same function name. The function name is used to generate the params’ cache key in localStorage. So you could run in situations where mechanic loads an incompatible version of the cached params into a function that has the same name as the function that cached those values.

If this is the cause of this #140 should fix it 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hyford's Cache Reveals Mysterious Project - Elite Dangerous
Hyford's Cache Reveals Mysterious Project ... A data bank left by a crashed vessel on the moon Colonia 5 e a has reactivated,...
Read more >
How to Fix the 'Cached Preview' Error in After Effects
In this article, we're going to talk about how to fix this 'Cached Preview' error in After Effects. If you follow all of...
Read more >
Fixed: Google Chrome is waiting for cache issue on Windows 10
Don't continue waiting for the cache issue on Windows 10 to clear on Google. Use these simple troubleshooting solutions to fix the issue...
Read more >
[Cache Server] Editor crashes when disabling CacheServer ...
1 Use any big project (I used 2 Gb ones - VikingVillageHDRP), make sure that CacheServer is setup and enabled beforehand · 2...
Read more >
Xcode Quick Fix - Clear Cache - Developer Insider
1. Clean the Build. If there is any issue in the project build, then first step is to clean the build, which will...
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