Comments (20)
For those looking for this, PR #149 fixes it. I have an updated fork of this PR here : https://github.com/roblabla/react-devtools
from react-devtools.
Just asked myself the same question and found that with the new devtools extension, the $r
global variable helps a lot: even if the sidebar still shows the internals of the immutable variables, I can select the component and type in the console:
$r.props.myImmutableProp.toJS()
or even use right-click "Store as a global variable" on the immutable prop/state then:
$tmp.toJS()
This is a temporary solution!
from react-devtools.
https://github.com/andrewdavey/immutable-devtools
from react-devtools.
@kristian-puccio that's great for console, but doesn't work on react-devtools
from react-devtools.
Agreed, this would be really nice. Not sure if others agree, but I feel like in an ideal world, we could integrate application code into the React devtools (e.g. to make them understand arbitrary data structures)
from react-devtools.
After reading this new post I really want this to be fixed
http://facebook.github.io/react/docs/advanced-performance.html
Feeling bad seeing this:
from react-devtools.
+1!
from react-devtools.
+1
from react-devtools.
+1
from react-devtools.
"+1" comments do not help us. Please stop.
from react-devtools.
+500
from react-devtools.
👍
This is so tedious to open every time:
from react-devtools.
Can we expect a support soon? We can handle it with "store as global variable", but should be great to have the "toJS" displayed directly in the panel. I can work on a PR if you want.
from react-devtools.
It reminds of this thing https://github.com/binaryage/cljs-devtools ClojureScript is inventing it own Console panel to display its data nice and fine.
from react-devtools.
Yeah I was wondering if some of the code is transferable
On 6 March 2016 at 21:38, Nathaniel Tucker [email protected] wrote:
@kristian-puccio https://github.com/kristian-puccio that's great for
console, but doesn't work on react-devtools—
Reply to this email directly or view it on GitHub
#52 (comment)
.
from react-devtools.
+1
from react-devtools.
Not sure if others agree, but I feel like in an ideal world, we could integrate application code into the React devtools (e.g. to make them understand arbitrary data structures)
@BinaryMuse Of course, I agree. Thus, it's done in PR #469 . That's how hooking into dev tools looks like on the example of Date class (which is actually implemented as a part of this PR to resolve #388 ).
if (__REACT_DEVTOOLS_GLOBAL_HOOK__) {
const { addInnerStateInspector } = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (typeof addInnerStateInspector === 'function') {
addInnerStateInspector( Date, x => ({
local : `${ x.toDateString() } ${ x.toTimeString() }`,
iso : x.toISOString(),
timestamp : x.getTime(),
});
}
}
Welcome to the ideal world :). If it will be accepted, I will implement support for ImmutableJS data structures.
from react-devtools.
#459 should address this. Can anyone give it a try?
from react-devtools.
Closing as fixed by #459.
Will be out soon.
from react-devtools.
Immutable (or any iterable, really) support is implemented in the latest version.
from react-devtools.
Related Issues (20)
- Can't install in Firefox HOT 1
- Expand all elements using default browser hot keys HOT 1
- Security issues with React.Provider HOT 5
- Search input text colour HOT 4
- Is it unmaintainable? HOT 1
- React App not Functioning with Extension Enabled HOT 1
- Having the devtools extension enabled breaks Kibana HOT 3
- New devtools is not compatible with React 0.14 HOT 5
- New Devtools: Where is Highlight Updates? HOT 5
- New Devtools Broken on Firefox 68.0.2, Windows 10 HOT 1
- React Devtools - Component selection bug v4 HOT 1
- Remove emoji from browser devtools tabs HOT 2
- New Devtools: Update props does not rerender component HOT 2
- Inspector: clicking on element with style object value causes crash HOT 1
- Firefox Private Browser Support HOT 1
- Show component file path HOT 1
- Long interaction names cannot be seen HOT 1
- Getting maximum call stack exceeded on backend.js when rendering many elements. HOT 2
- Using react-devtools to inspect component that only appears on hover HOT 1
- React devtools 4.0.4 (8/18/2019) Expected to find root ID. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-devtools.