Devtools: relies on localStorage
See original GitHub issueI’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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is possible. I will have a look later. Busy now.
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.