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.

Devtools: relies on localStorage

See original GitHub issue

I’m using hookstate in a react-native project and would like to be able to use the devtools. However I get:

ReferenceError: localStorage is not defined

as localStorage doesn’t exist in the react-native environment. Any chance to get devtools working with RN?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
avkonstcommented, May 6, 2020

This is possible. I will have a look later. Busy now.

0reactions
avkonstcommented, May 27, 2020

Fixed on latest. Uses new API targeting version 2 of hookstate. The dev tools and the API v2 are documented here: https://hookstate.js.org/docs/devtools

I have not verified it with RN, because I do not have an environment. Let me know how it goes. If it still does not work, reopen the ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

View and edit local storage - Chrome Developers
This guide shows you how to use Chrome DevTools to view, edit, and delete localStorage key-value pairs. # View localStorage keys and ...
Read more >
How to view or edit localStorage? - google chrome
It's simple. Just go to the developer tools by pressing F12 , then go to the Application tab. In the Storage section expand...
Read more >
319328 - Access to localStorage denied for DevTools extension
DevTools is currently the exception for localStorage in extensions. The attached extension succeeds in setting localStorage in a content script ...
Read more >
localStorage in JavaScript: A complete guide - LogRocket Blog
In this tutorial, we'll show you how to use the localStorage mechanism and Window.localStorage property and review the basics of web storage ...
Read more >
Using LocalStorage to Persist Data - DEV Community ‍ ‍
The localStorage is just a JS object. If you open up dev tools and type localStorage into the console, you should get back...
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