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.

Error on initial load

See original GitHub issue

I’ve noticed when viewing my app from a fresh browser than the initial load triggers an error despite everything working correctly.

[Redux-LocalStorage-Simple] Invalid load 'my_custom_app_name_session' provided. Check your 'states' in 'load()'

I’m sharing the same config to my save() and load() functions:

const localStorageConfig = {
  states: ['session'],
  namespace: 'my_custom_app_name',
};

save(localStorageConfig);

load(localStorageConfig);

Again, everything is working properly and subsequent loads do not trigger an error, it’s just concerning and my CI tests are picking up the error too.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jesper-nordcommented, May 3, 2018

@kilkelly I’ve upgraded the version for our project and it seems to work just fine. Thanks again!

2reactions
jesper-nordcommented, May 2, 2018

@kilkelly I’ve created a new PR #13 for a config flag to disable warnings, and changed console.error to warn for missing namespaces.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initial Load Error - SAP Community
I am doing initial load for customizing adapter objects in Testing Client of Development Box. In R3AS when i give the adapt.
Read more >
Runtime Error on First load · Issue #15824 · vercel/next.js
Describe the bug. The app gives runtime error when you access localhost first time after yarn dev .
Read more >
How to keep form error message blank on initial load in ...
I'm trying to learn forms in AngularJS 1.x. But I have error messages that are always on ...
Read more >
Initial Load Error - Oracle Communities
Hi All I am trying to make inital load but I am receiving the following error. But trail file has been created on...
Read more >
SAP message FINS_CFIN_IF_MESSAGE002 Step one of initial
Even though this error message does not provide any useful or additional message details, you can still try to solve the issue by...
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